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/xfsprogs-5.6.0/copy/xfs_copy.c
Examining data/xfsprogs-5.6.0/copy/xfs_copy.h
Examining data/xfsprogs-5.6.0/db/addr.c
Examining data/xfsprogs-5.6.0/db/addr.h
Examining data/xfsprogs-5.6.0/db/agf.c
Examining data/xfsprogs-5.6.0/db/agf.h
Examining data/xfsprogs-5.6.0/db/agfl.c
Examining data/xfsprogs-5.6.0/db/agfl.h
Examining data/xfsprogs-5.6.0/db/agi.c
Examining data/xfsprogs-5.6.0/db/agi.h
Examining data/xfsprogs-5.6.0/db/attr.c
Examining data/xfsprogs-5.6.0/db/attr.h
Examining data/xfsprogs-5.6.0/db/attrset.c
Examining data/xfsprogs-5.6.0/db/attrset.h
Examining data/xfsprogs-5.6.0/db/attrshort.c
Examining data/xfsprogs-5.6.0/db/attrshort.h
Examining data/xfsprogs-5.6.0/db/bit.c
Examining data/xfsprogs-5.6.0/db/bit.h
Examining data/xfsprogs-5.6.0/db/block.c
Examining data/xfsprogs-5.6.0/db/block.h
Examining data/xfsprogs-5.6.0/db/bmap.c
Examining data/xfsprogs-5.6.0/db/bmap.h
Examining data/xfsprogs-5.6.0/db/bmroot.c
Examining data/xfsprogs-5.6.0/db/bmroot.h
Examining data/xfsprogs-5.6.0/db/btblock.c
Examining data/xfsprogs-5.6.0/db/btblock.h
Examining data/xfsprogs-5.6.0/db/btdump.c
Examining data/xfsprogs-5.6.0/db/btheight.c
Examining data/xfsprogs-5.6.0/db/check.c
Examining data/xfsprogs-5.6.0/db/check.h
Examining data/xfsprogs-5.6.0/db/command.c
Examining data/xfsprogs-5.6.0/db/command.h
Examining data/xfsprogs-5.6.0/db/convert.c
Examining data/xfsprogs-5.6.0/db/crc.c
Examining data/xfsprogs-5.6.0/db/crc.h
Examining data/xfsprogs-5.6.0/db/debug.c
Examining data/xfsprogs-5.6.0/db/debug.h
Examining data/xfsprogs-5.6.0/db/dir2.c
Examining data/xfsprogs-5.6.0/db/dir2.h
Examining data/xfsprogs-5.6.0/db/dir2sf.c
Examining data/xfsprogs-5.6.0/db/dir2sf.h
Examining data/xfsprogs-5.6.0/db/dquot.c
Examining data/xfsprogs-5.6.0/db/dquot.h
Examining data/xfsprogs-5.6.0/db/echo.c
Examining data/xfsprogs-5.6.0/db/echo.h
Examining data/xfsprogs-5.6.0/db/faddr.c
Examining data/xfsprogs-5.6.0/db/faddr.h
Examining data/xfsprogs-5.6.0/db/field.c
Examining data/xfsprogs-5.6.0/db/field.h
Examining data/xfsprogs-5.6.0/db/flist.c
Examining data/xfsprogs-5.6.0/db/flist.h
Examining data/xfsprogs-5.6.0/db/fprint.c
Examining data/xfsprogs-5.6.0/db/fprint.h
Examining data/xfsprogs-5.6.0/db/frag.c
Examining data/xfsprogs-5.6.0/db/frag.h
Examining data/xfsprogs-5.6.0/db/freesp.c
Examining data/xfsprogs-5.6.0/db/freesp.h
Examining data/xfsprogs-5.6.0/db/fsmap.c
Examining data/xfsprogs-5.6.0/db/fsmap.h
Examining data/xfsprogs-5.6.0/db/fuzz.c
Examining data/xfsprogs-5.6.0/db/fuzz.h
Examining data/xfsprogs-5.6.0/db/hash.c
Examining data/xfsprogs-5.6.0/db/hash.h
Examining data/xfsprogs-5.6.0/db/help.c
Examining data/xfsprogs-5.6.0/db/help.h
Examining data/xfsprogs-5.6.0/db/info.c
Examining data/xfsprogs-5.6.0/db/init.c
Examining data/xfsprogs-5.6.0/db/init.h
Examining data/xfsprogs-5.6.0/db/inode.c
Examining data/xfsprogs-5.6.0/db/inode.h
Examining data/xfsprogs-5.6.0/db/input.c
Examining data/xfsprogs-5.6.0/db/input.h
Examining data/xfsprogs-5.6.0/db/io.c
Examining data/xfsprogs-5.6.0/db/io.h
Examining data/xfsprogs-5.6.0/db/logformat.c
Examining data/xfsprogs-5.6.0/db/logformat.h
Examining data/xfsprogs-5.6.0/db/malloc.c
Examining data/xfsprogs-5.6.0/db/malloc.h
Examining data/xfsprogs-5.6.0/db/metadump.c
Examining data/xfsprogs-5.6.0/db/metadump.h
Examining data/xfsprogs-5.6.0/db/output.c
Examining data/xfsprogs-5.6.0/db/output.h
Examining data/xfsprogs-5.6.0/db/print.c
Examining data/xfsprogs-5.6.0/db/print.h
Examining data/xfsprogs-5.6.0/db/quit.c
Examining data/xfsprogs-5.6.0/db/quit.h
Examining data/xfsprogs-5.6.0/db/sb.c
Examining data/xfsprogs-5.6.0/db/sb.h
Examining data/xfsprogs-5.6.0/db/sig.c
Examining data/xfsprogs-5.6.0/db/sig.h
Examining data/xfsprogs-5.6.0/db/strvec.c
Examining data/xfsprogs-5.6.0/db/strvec.h
Examining data/xfsprogs-5.6.0/db/symlink.c
Examining data/xfsprogs-5.6.0/db/symlink.h
Examining data/xfsprogs-5.6.0/db/text.c
Examining data/xfsprogs-5.6.0/db/text.h
Examining data/xfsprogs-5.6.0/db/type.c
Examining data/xfsprogs-5.6.0/db/type.h
Examining data/xfsprogs-5.6.0/db/write.c
Examining data/xfsprogs-5.6.0/db/write.h
Examining data/xfsprogs-5.6.0/estimate/xfs_estimate.c
Examining data/xfsprogs-5.6.0/fsr/xfs_fsr.c
Examining data/xfsprogs-5.6.0/growfs/xfs_growfs.c
Examining data/xfsprogs-5.6.0/include/atomic.h
Examining data/xfsprogs-5.6.0/include/bitops.h
Examining data/xfsprogs-5.6.0/include/cache.h
Examining data/xfsprogs-5.6.0/include/command.h
Examining data/xfsprogs-5.6.0/include/handle.h
Examining data/xfsprogs-5.6.0/include/hlist.h
Examining data/xfsprogs-5.6.0/include/input.h
Examining data/xfsprogs-5.6.0/include/jdm.h
Examining data/xfsprogs-5.6.0/include/kmem.h
Examining data/xfsprogs-5.6.0/include/libxcmd.h
Examining data/xfsprogs-5.6.0/include/libxfs.h
Examining data/xfsprogs-5.6.0/include/libxlog.h
Examining data/xfsprogs-5.6.0/include/linux.h
Examining data/xfsprogs-5.6.0/include/list.h
Examining data/xfsprogs-5.6.0/include/parent.h
Examining data/xfsprogs-5.6.0/include/xfs.h
Examining data/xfsprogs-5.6.0/include/xfs_arch.h
Examining data/xfsprogs-5.6.0/include/xfs_btree_trace.h
Examining data/xfsprogs-5.6.0/include/xfs_inode.h
Examining data/xfsprogs-5.6.0/include/xfs_log_recover.h
Examining data/xfsprogs-5.6.0/include/xfs_metadump.h
Examining data/xfsprogs-5.6.0/include/xfs_mount.h
Examining data/xfsprogs-5.6.0/include/xfs_multidisk.h
Examining data/xfsprogs-5.6.0/include/xfs_trace.h
Examining data/xfsprogs-5.6.0/include/xfs_trans.h
Examining data/xfsprogs-5.6.0/include/xqm.h
Examining data/xfsprogs-5.6.0/io/attr.c
Examining data/xfsprogs-5.6.0/io/bmap.c
Examining data/xfsprogs-5.6.0/io/bulkstat.c
Examining data/xfsprogs-5.6.0/io/copy_file_range.c
Examining data/xfsprogs-5.6.0/io/cowextsize.c
Examining data/xfsprogs-5.6.0/io/crc32cselftest.c
Examining data/xfsprogs-5.6.0/io/encrypt.c
Examining data/xfsprogs-5.6.0/io/fadvise.c
Examining data/xfsprogs-5.6.0/io/fiemap.c
Examining data/xfsprogs-5.6.0/io/file.c
Examining data/xfsprogs-5.6.0/io/freeze.c
Examining data/xfsprogs-5.6.0/io/fsmap.c
Examining data/xfsprogs-5.6.0/io/fsync.c
Examining data/xfsprogs-5.6.0/io/getrusage.c
Examining data/xfsprogs-5.6.0/io/imap.c
Examining data/xfsprogs-5.6.0/io/init.c
Examining data/xfsprogs-5.6.0/io/init.h
Examining data/xfsprogs-5.6.0/io/inject.c
Examining data/xfsprogs-5.6.0/io/io.h
Examining data/xfsprogs-5.6.0/io/label.c
Examining data/xfsprogs-5.6.0/io/link.c
Examining data/xfsprogs-5.6.0/io/log_writes.c
Examining data/xfsprogs-5.6.0/io/madvise.c
Examining data/xfsprogs-5.6.0/io/mincore.c
Examining data/xfsprogs-5.6.0/io/mmap.c
Examining data/xfsprogs-5.6.0/io/open.c
Examining data/xfsprogs-5.6.0/io/parent.c
Examining data/xfsprogs-5.6.0/io/pread.c
Examining data/xfsprogs-5.6.0/io/prealloc.c
Examining data/xfsprogs-5.6.0/io/pwrite.c
Examining data/xfsprogs-5.6.0/io/readdir.c
Examining data/xfsprogs-5.6.0/io/reflink.c
Examining data/xfsprogs-5.6.0/io/resblks.c
Examining data/xfsprogs-5.6.0/io/scrub.c
Examining data/xfsprogs-5.6.0/io/seek.c
Examining data/xfsprogs-5.6.0/io/sendfile.c
Examining data/xfsprogs-5.6.0/io/shutdown.c
Examining data/xfsprogs-5.6.0/io/stat.c
Examining data/xfsprogs-5.6.0/io/statx.h
Examining data/xfsprogs-5.6.0/io/swapext.c
Examining data/xfsprogs-5.6.0/io/sync.c
Examining data/xfsprogs-5.6.0/io/sync_file_range.c
Examining data/xfsprogs-5.6.0/io/truncate.c
Examining data/xfsprogs-5.6.0/io/utimes.c
Examining data/xfsprogs-5.6.0/libfrog/avl64.c
Examining data/xfsprogs-5.6.0/libfrog/avl64.h
Examining data/xfsprogs-5.6.0/libfrog/bitmap.c
Examining data/xfsprogs-5.6.0/libfrog/bitmap.h
Examining data/xfsprogs-5.6.0/libfrog/bulkstat.c
Examining data/xfsprogs-5.6.0/libfrog/bulkstat.h
Examining data/xfsprogs-5.6.0/libfrog/convert.c
Examining data/xfsprogs-5.6.0/libfrog/convert.h
Examining data/xfsprogs-5.6.0/libfrog/crc32.c
Examining data/xfsprogs-5.6.0/libfrog/crc32c.h
Examining data/xfsprogs-5.6.0/libfrog/crc32cselftest.h
Examining data/xfsprogs-5.6.0/libfrog/crc32defs.h
Examining data/xfsprogs-5.6.0/libfrog/fsgeom.c
Examining data/xfsprogs-5.6.0/libfrog/fsgeom.h
Examining data/xfsprogs-5.6.0/libfrog/gen_crc32table.c
Examining data/xfsprogs-5.6.0/libfrog/linux.c
Examining data/xfsprogs-5.6.0/libfrog/list_sort.c
Examining data/xfsprogs-5.6.0/libfrog/logging.c
Examining data/xfsprogs-5.6.0/libfrog/logging.h
Examining data/xfsprogs-5.6.0/libfrog/paths.c
Examining data/xfsprogs-5.6.0/libfrog/paths.h
Examining data/xfsprogs-5.6.0/libfrog/platform.h
Examining data/xfsprogs-5.6.0/libfrog/projects.c
Examining data/xfsprogs-5.6.0/libfrog/projects.h
Examining data/xfsprogs-5.6.0/libfrog/ptvar.c
Examining data/xfsprogs-5.6.0/libfrog/ptvar.h
Examining data/xfsprogs-5.6.0/libfrog/radix-tree.c
Examining data/xfsprogs-5.6.0/libfrog/radix-tree.h
Examining data/xfsprogs-5.6.0/libfrog/scrub.c
Examining data/xfsprogs-5.6.0/libfrog/scrub.h
Examining data/xfsprogs-5.6.0/libfrog/topology.c
Examining data/xfsprogs-5.6.0/libfrog/topology.h
Examining data/xfsprogs-5.6.0/libfrog/util.c
Examining data/xfsprogs-5.6.0/libfrog/util.h
Examining data/xfsprogs-5.6.0/libfrog/workqueue.c
Examining data/xfsprogs-5.6.0/libfrog/workqueue.h
Examining data/xfsprogs-5.6.0/libhandle/handle.c
Examining data/xfsprogs-5.6.0/libhandle/jdm.c
Examining data/xfsprogs-5.6.0/libxcmd/command.c
Examining data/xfsprogs-5.6.0/libxcmd/help.c
Examining data/xfsprogs-5.6.0/libxcmd/input.c
Examining data/xfsprogs-5.6.0/libxcmd/quit.c
Examining data/xfsprogs-5.6.0/libxfs/cache.c
Examining data/xfsprogs-5.6.0/libxfs/defer_item.c
Examining data/xfsprogs-5.6.0/libxfs/init.c
Examining data/xfsprogs-5.6.0/libxfs/init.h
Examining data/xfsprogs-5.6.0/libxfs/kmem.c
Examining data/xfsprogs-5.6.0/libxfs/libxfs_api_defs.h
Examining data/xfsprogs-5.6.0/libxfs/libxfs_io.h
Examining data/xfsprogs-5.6.0/libxfs/libxfs_priv.h
Examining data/xfsprogs-5.6.0/libxfs/logitem.c
Examining data/xfsprogs-5.6.0/libxfs/rdwr.c
Examining data/xfsprogs-5.6.0/libxfs/trans.c
Examining data/xfsprogs-5.6.0/libxfs/util.c
Examining data/xfsprogs-5.6.0/libxfs/xfs_ag.c
Examining data/xfsprogs-5.6.0/libxfs/xfs_ag.h
Examining data/xfsprogs-5.6.0/libxfs/xfs_ag_resv.c
Examining data/xfsprogs-5.6.0/libxfs/xfs_ag_resv.h
Examining data/xfsprogs-5.6.0/libxfs/xfs_alloc.c
Examining data/xfsprogs-5.6.0/libxfs/xfs_alloc.h
Examining data/xfsprogs-5.6.0/libxfs/xfs_alloc_btree.c
Examining data/xfsprogs-5.6.0/libxfs/xfs_alloc_btree.h
Examining data/xfsprogs-5.6.0/libxfs/xfs_attr.c
Examining data/xfsprogs-5.6.0/libxfs/xfs_attr.h
Examining data/xfsprogs-5.6.0/libxfs/xfs_attr_leaf.c
Examining data/xfsprogs-5.6.0/libxfs/xfs_attr_leaf.h
Examining data/xfsprogs-5.6.0/libxfs/xfs_attr_remote.c
Examining data/xfsprogs-5.6.0/libxfs/xfs_attr_remote.h
Examining data/xfsprogs-5.6.0/libxfs/xfs_attr_sf.h
Examining data/xfsprogs-5.6.0/libxfs/xfs_bit.c
Examining data/xfsprogs-5.6.0/libxfs/xfs_bit.h
Examining data/xfsprogs-5.6.0/libxfs/xfs_bmap.c
Examining data/xfsprogs-5.6.0/libxfs/xfs_bmap.h
Examining data/xfsprogs-5.6.0/libxfs/xfs_bmap_btree.c
Examining data/xfsprogs-5.6.0/libxfs/xfs_bmap_btree.h
Examining data/xfsprogs-5.6.0/libxfs/xfs_btree.c
Examining data/xfsprogs-5.6.0/libxfs/xfs_btree.h
Examining data/xfsprogs-5.6.0/libxfs/xfs_cksum.h
Examining data/xfsprogs-5.6.0/libxfs/xfs_da_btree.c
Examining data/xfsprogs-5.6.0/libxfs/xfs_da_btree.h
Examining data/xfsprogs-5.6.0/libxfs/xfs_da_format.h
Examining data/xfsprogs-5.6.0/libxfs/xfs_defer.c
Examining data/xfsprogs-5.6.0/libxfs/xfs_defer.h
Examining data/xfsprogs-5.6.0/libxfs/xfs_dir2.c
Examining data/xfsprogs-5.6.0/libxfs/xfs_dir2.h
Examining data/xfsprogs-5.6.0/libxfs/xfs_dir2_block.c
Examining data/xfsprogs-5.6.0/libxfs/xfs_dir2_data.c
Examining data/xfsprogs-5.6.0/libxfs/xfs_dir2_leaf.c
Examining data/xfsprogs-5.6.0/libxfs/xfs_dir2_node.c
Examining data/xfsprogs-5.6.0/libxfs/xfs_dir2_priv.h
Examining data/xfsprogs-5.6.0/libxfs/xfs_dir2_sf.c
Examining data/xfsprogs-5.6.0/libxfs/xfs_dquot_buf.c
Examining data/xfsprogs-5.6.0/libxfs/xfs_errortag.h
Examining data/xfsprogs-5.6.0/libxfs/xfs_format.h
Examining data/xfsprogs-5.6.0/libxfs/xfs_fs.h
Examining data/xfsprogs-5.6.0/libxfs/xfs_health.h
Examining data/xfsprogs-5.6.0/libxfs/xfs_ialloc.c
Examining data/xfsprogs-5.6.0/libxfs/xfs_ialloc.h
Examining data/xfsprogs-5.6.0/libxfs/xfs_ialloc_btree.c
Examining data/xfsprogs-5.6.0/libxfs/xfs_ialloc_btree.h
Examining data/xfsprogs-5.6.0/libxfs/xfs_iext_tree.c
Examining data/xfsprogs-5.6.0/libxfs/xfs_inode_buf.c
Examining data/xfsprogs-5.6.0/libxfs/xfs_inode_buf.h
Examining data/xfsprogs-5.6.0/libxfs/xfs_inode_fork.c
Examining data/xfsprogs-5.6.0/libxfs/xfs_inode_fork.h
Examining data/xfsprogs-5.6.0/libxfs/xfs_log_format.h
Examining data/xfsprogs-5.6.0/libxfs/xfs_log_rlimit.c
Examining data/xfsprogs-5.6.0/libxfs/xfs_quota_defs.h
Examining data/xfsprogs-5.6.0/libxfs/xfs_refcount.c
Examining data/xfsprogs-5.6.0/libxfs/xfs_refcount.h
Examining data/xfsprogs-5.6.0/libxfs/xfs_refcount_btree.c
Examining data/xfsprogs-5.6.0/libxfs/xfs_refcount_btree.h
Examining data/xfsprogs-5.6.0/libxfs/xfs_rmap.c
Examining data/xfsprogs-5.6.0/libxfs/xfs_rmap.h
Examining data/xfsprogs-5.6.0/libxfs/xfs_rmap_btree.c
Examining data/xfsprogs-5.6.0/libxfs/xfs_rmap_btree.h
Examining data/xfsprogs-5.6.0/libxfs/xfs_rtbitmap.c
Examining data/xfsprogs-5.6.0/libxfs/xfs_sb.c
Examining data/xfsprogs-5.6.0/libxfs/xfs_sb.h
Examining data/xfsprogs-5.6.0/libxfs/xfs_shared.h
Examining data/xfsprogs-5.6.0/libxfs/xfs_symlink_remote.c
Examining data/xfsprogs-5.6.0/libxfs/xfs_trans_inode.c
Examining data/xfsprogs-5.6.0/libxfs/xfs_trans_resv.c
Examining data/xfsprogs-5.6.0/libxfs/xfs_trans_resv.h
Examining data/xfsprogs-5.6.0/libxfs/xfs_trans_space.h
Examining data/xfsprogs-5.6.0/libxfs/xfs_types.c
Examining data/xfsprogs-5.6.0/libxfs/xfs_types.h
Examining data/xfsprogs-5.6.0/libxlog/util.c
Examining data/xfsprogs-5.6.0/libxlog/xfs_log_recover.c
Examining data/xfsprogs-5.6.0/logprint/log_copy.c
Examining data/xfsprogs-5.6.0/logprint/log_dump.c
Examining data/xfsprogs-5.6.0/logprint/log_misc.c
Examining data/xfsprogs-5.6.0/logprint/log_print_all.c
Examining data/xfsprogs-5.6.0/logprint/log_print_trans.c
Examining data/xfsprogs-5.6.0/logprint/log_redo.c
Examining data/xfsprogs-5.6.0/logprint/logprint.c
Examining data/xfsprogs-5.6.0/logprint/logprint.h
Examining data/xfsprogs-5.6.0/mdrestore/xfs_mdrestore.c
Examining data/xfsprogs-5.6.0/mkfs/proto.c
Examining data/xfsprogs-5.6.0/mkfs/xfs_mkfs.c
Examining data/xfsprogs-5.6.0/quota/edit.c
Examining data/xfsprogs-5.6.0/quota/free.c
Examining data/xfsprogs-5.6.0/quota/init.c
Examining data/xfsprogs-5.6.0/quota/init.h
Examining data/xfsprogs-5.6.0/quota/linux.c
Examining data/xfsprogs-5.6.0/quota/path.c
Examining data/xfsprogs-5.6.0/quota/project.c
Examining data/xfsprogs-5.6.0/quota/quot.c
Examining data/xfsprogs-5.6.0/quota/quota.c
Examining data/xfsprogs-5.6.0/quota/quota.h
Examining data/xfsprogs-5.6.0/quota/report.c
Examining data/xfsprogs-5.6.0/quota/state.c
Examining data/xfsprogs-5.6.0/quota/util.c
Examining data/xfsprogs-5.6.0/repair/agheader.c
Examining data/xfsprogs-5.6.0/repair/agheader.h
Examining data/xfsprogs-5.6.0/repair/attr_repair.c
Examining data/xfsprogs-5.6.0/repair/attr_repair.h
Examining data/xfsprogs-5.6.0/repair/avl.c
Examining data/xfsprogs-5.6.0/repair/avl.h
Examining data/xfsprogs-5.6.0/repair/bmap.c
Examining data/xfsprogs-5.6.0/repair/bmap.h
Examining data/xfsprogs-5.6.0/repair/btree.c
Examining data/xfsprogs-5.6.0/repair/btree.h
Examining data/xfsprogs-5.6.0/repair/da_util.c
Examining data/xfsprogs-5.6.0/repair/da_util.h
Examining data/xfsprogs-5.6.0/repair/dino_chunks.c
Examining data/xfsprogs-5.6.0/repair/dinode.c
Examining data/xfsprogs-5.6.0/repair/dinode.h
Examining data/xfsprogs-5.6.0/repair/dir2.c
Examining data/xfsprogs-5.6.0/repair/dir2.h
Examining data/xfsprogs-5.6.0/repair/err_protos.h
Examining data/xfsprogs-5.6.0/repair/globals.c
Examining data/xfsprogs-5.6.0/repair/globals.h
Examining data/xfsprogs-5.6.0/repair/incore.c
Examining data/xfsprogs-5.6.0/repair/incore.h
Examining data/xfsprogs-5.6.0/repair/incore_bmc.c
Examining data/xfsprogs-5.6.0/repair/incore_ext.c
Examining data/xfsprogs-5.6.0/repair/incore_ino.c
Examining data/xfsprogs-5.6.0/repair/init.c
Examining data/xfsprogs-5.6.0/repair/phase1.c
Examining data/xfsprogs-5.6.0/repair/phase2.c
Examining data/xfsprogs-5.6.0/repair/phase3.c
Examining data/xfsprogs-5.6.0/repair/phase4.c
Examining data/xfsprogs-5.6.0/repair/phase5.c
Examining data/xfsprogs-5.6.0/repair/phase6.c
Examining data/xfsprogs-5.6.0/repair/phase7.c
Examining data/xfsprogs-5.6.0/repair/prefetch.c
Examining data/xfsprogs-5.6.0/repair/prefetch.h
Examining data/xfsprogs-5.6.0/repair/progress.c
Examining data/xfsprogs-5.6.0/repair/progress.h
Examining data/xfsprogs-5.6.0/repair/protos.h
Examining data/xfsprogs-5.6.0/repair/rmap.c
Examining data/xfsprogs-5.6.0/repair/rmap.h
Examining data/xfsprogs-5.6.0/repair/rt.c
Examining data/xfsprogs-5.6.0/repair/rt.h
Examining data/xfsprogs-5.6.0/repair/sb.c
Examining data/xfsprogs-5.6.0/repair/scan.c
Examining data/xfsprogs-5.6.0/repair/scan.h
Examining data/xfsprogs-5.6.0/repair/slab.c
Examining data/xfsprogs-5.6.0/repair/slab.h
Examining data/xfsprogs-5.6.0/repair/threads.c
Examining data/xfsprogs-5.6.0/repair/threads.h
Examining data/xfsprogs-5.6.0/repair/versions.c
Examining data/xfsprogs-5.6.0/repair/versions.h
Examining data/xfsprogs-5.6.0/repair/xfs_repair.c
Examining data/xfsprogs-5.6.0/rtcp/xfs_rtcp.c
Examining data/xfsprogs-5.6.0/scrub/common.c
Examining data/xfsprogs-5.6.0/scrub/common.h
Examining data/xfsprogs-5.6.0/scrub/counter.c
Examining data/xfsprogs-5.6.0/scrub/counter.h
Examining data/xfsprogs-5.6.0/scrub/descr.c
Examining data/xfsprogs-5.6.0/scrub/descr.h
Examining data/xfsprogs-5.6.0/scrub/disk.c
Examining data/xfsprogs-5.6.0/scrub/disk.h
Examining data/xfsprogs-5.6.0/scrub/filemap.c
Examining data/xfsprogs-5.6.0/scrub/filemap.h
Examining data/xfsprogs-5.6.0/scrub/fscounters.c
Examining data/xfsprogs-5.6.0/scrub/fscounters.h
Examining data/xfsprogs-5.6.0/scrub/inodes.c
Examining data/xfsprogs-5.6.0/scrub/inodes.h
Examining data/xfsprogs-5.6.0/scrub/phase1.c
Examining data/xfsprogs-5.6.0/scrub/phase2.c
Examining data/xfsprogs-5.6.0/scrub/phase3.c
Examining data/xfsprogs-5.6.0/scrub/phase4.c
Examining data/xfsprogs-5.6.0/scrub/phase5.c
Examining data/xfsprogs-5.6.0/scrub/phase6.c
Examining data/xfsprogs-5.6.0/scrub/phase7.c
Examining data/xfsprogs-5.6.0/scrub/progress.c
Examining data/xfsprogs-5.6.0/scrub/progress.h
Examining data/xfsprogs-5.6.0/scrub/read_verify.c
Examining data/xfsprogs-5.6.0/scrub/read_verify.h
Examining data/xfsprogs-5.6.0/scrub/repair.c
Examining data/xfsprogs-5.6.0/scrub/repair.h
Examining data/xfsprogs-5.6.0/scrub/scrub.c
Examining data/xfsprogs-5.6.0/scrub/scrub.h
Examining data/xfsprogs-5.6.0/scrub/spacemap.c
Examining data/xfsprogs-5.6.0/scrub/spacemap.h
Examining data/xfsprogs-5.6.0/scrub/unicrash.c
Examining data/xfsprogs-5.6.0/scrub/unicrash.h
Examining data/xfsprogs-5.6.0/scrub/vfs.c
Examining data/xfsprogs-5.6.0/scrub/vfs.h
Examining data/xfsprogs-5.6.0/scrub/xfs_scrub.c
Examining data/xfsprogs-5.6.0/scrub/xfs_scrub.h
Examining data/xfsprogs-5.6.0/spaceman/file.c
Examining data/xfsprogs-5.6.0/spaceman/freesp.c
Examining data/xfsprogs-5.6.0/spaceman/health.c
Examining data/xfsprogs-5.6.0/spaceman/info.c
Examining data/xfsprogs-5.6.0/spaceman/init.c
Examining data/xfsprogs-5.6.0/spaceman/init.h
Examining data/xfsprogs-5.6.0/spaceman/prealloc.c
Examining data/xfsprogs-5.6.0/spaceman/space.h
Examining data/xfsprogs-5.6.0/spaceman/trim.c

FINAL RESULTS:

data/xfsprogs-5.6.0/copy/xfs_copy.c:81:7:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		if (vfprintf(logerr, fmt, ap) <= 0)
data/xfsprogs-5.6.0/copy/xfs_copy.c:89:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vfprintf(stderr, fmt, ap);
data/xfsprogs-5.6.0/copy/xfs_copy.c:93:3:  [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(stdout, fmt, ap);
data/xfsprogs-5.6.0/db/btdump.c:44: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(buf, sizeof(buf), fmt, ap);
data/xfsprogs-5.6.0/db/input.c:197:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(rval, buf);
data/xfsprogs-5.6.0/db/metadump.c:97: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(buf, sizeof(buf), fmt, ap);
data/xfsprogs-5.6.0/db/metadump.c:117: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(buf, sizeof(buf), fmt, ap);
data/xfsprogs-5.6.0/db/output.c:38:7:  [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.
	i += vprintf(fmt, ap);
data/xfsprogs-5.6.0/db/output.c:43:3:  [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(log_file, fmt, ap);
data/xfsprogs-5.6.0/db/output.c:89: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(log_file, fmt, ap);
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:205: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(_PATH_PROC_MOUNTS, R_OK) == 0)
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:570:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ret = sprintf(buf, "%s %d %llu\n", fs->dev,
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:1224:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(ffname, "%s.frag", tname);
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:1467:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(buf, sbuf);
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:1653: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, ap);
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:1676:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "%s/.fsr", mnt);
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:1691:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buf, "%s/.fsr/ag%d", mnt, i);
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:1713:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "%s/.fsr/ag%d/tmp%d",
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:1732:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buf, "%s/.fsr/ag%d", mnt, i);
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:1741:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "%s/.fsr", mnt);
data/xfsprogs-5.6.0/io/mmap.c:163:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, file ?
data/xfsprogs-5.6.0/io/mmap.c:171:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, file ?
data/xfsprogs-5.6.0/io/parent.c:36:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(fullpath, _("%s%s"), mntpt, parent->p_name);
data/xfsprogs-5.6.0/libfrog/convert.c:248:3:  [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.
		snprintf(str, size, fmt, TO_EXABYTES(value));
data/xfsprogs-5.6.0/libfrog/convert.c:251:3:  [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.
		snprintf(str, size, fmt, TO_PETABYTES(value));
data/xfsprogs-5.6.0/libfrog/convert.c:254:3:  [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.
		snprintf(str, size, fmt, TO_TERABYTES(value));
data/xfsprogs-5.6.0/libfrog/convert.c:257:3:  [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.
		snprintf(str, size, fmt, TO_GIGABYTES(value));
data/xfsprogs-5.6.0/libfrog/convert.c:260:3:  [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.
		snprintf(str, size, fmt, TO_MEGABYTES(value));
data/xfsprogs-5.6.0/libfrog/convert.c:263:3:  [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.
		snprintf(str, size, fmt, TO_KILOBYTES(value));
data/xfsprogs-5.6.0/libfrog/linux.c:59: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(mounts, (!access(PROC_MOUNTED, R_OK)) ? PROC_MOUNTED : MOUNTED);
data/xfsprogs-5.6.0/libfrog/linux.c:59:19:  [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.
	strcpy(mounts, (!access(PROC_MOUNTED, R_OK)) ? PROC_MOUNTED : MOUNTED);
data/xfsprogs-5.6.0/libfrog/paths.c:379: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(mtab_file, R_OK) != 0)
data/xfsprogs-5.6.0/libfrog/topology.c:264:2:  [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.
 access are not working!
data/xfsprogs-5.6.0/libxfs/util.c:597: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, fmt, ap);
data/xfsprogs-5.6.0/libxlog/util.c:151: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, fmt, ap);
data/xfsprogs-5.6.0/libxlog/util.c:162: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, fmt, ap);
data/xfsprogs-5.6.0/libxlog/util.c:174: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, fmt, ap);
data/xfsprogs-5.6.0/mdrestore/xfs_mdrestore.c:21: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, msg, args);
data/xfsprogs-5.6.0/mdrestore/xfs_mdrestore.c:32: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(buf, sizeof(buf), fmt, ap);
data/xfsprogs-5.6.0/quota/free.c:236:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(fp, (flags & HUMAN_FLAG) ?
data/xfsprogs-5.6.0/quota/free.c:239:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(fp, (flags & HUMAN_FLAG) ?
data/xfsprogs-5.6.0/quota/free.c:243:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(fp, (flags & HUMAN_FLAG) ?
data/xfsprogs-5.6.0/quota/project.c:305: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 (!ispath && access(projects_file, F_OK) != 0) {
data/xfsprogs-5.6.0/quota/quota.c:78:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(fp, (flags & HUMAN_FLAG) ?
data/xfsprogs-5.6.0/quota/quota.c:82:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(fp, (flags & HUMAN_FLAG) ?
data/xfsprogs-5.6.0/quota/quota.c:86:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(fp, (flags & HUMAN_FLAG) ?
data/xfsprogs-5.6.0/quota/report.c:268:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(fp, (flags & HUMAN_FLAG) ?
data/xfsprogs-5.6.0/quota/report.c:272:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(fp, (flags & HUMAN_FLAG) ?
data/xfsprogs-5.6.0/quota/report.c:276:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(fp, (flags & HUMAN_FLAG) ?
data/xfsprogs-5.6.0/quota/report.c:285:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(fp, (flags & HUMAN_FLAG) ?
data/xfsprogs-5.6.0/quota/report.c:289:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(fp, (flags & HUMAN_FLAG) ?
data/xfsprogs-5.6.0/quota/report.c:293:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(fp, (flags & HUMAN_FLAG) ?
data/xfsprogs-5.6.0/quota/util.c:57:3:  [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.
		snprintf(timestamp, sizeof(timestamp), (flags & HUMAN_FLAG) ?
data/xfsprogs-5.6.0/quota/util.c:60:3:  [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.
		snprintf(timestamp, sizeof(timestamp), (flags & HUMAN_FLAG) ?
data/xfsprogs-5.6.0/quota/util.c:71:3:  [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.
		snprintf(timestamp, sizeof(timestamp),
data/xfsprogs-5.6.0/quota/util.c:92:10:  [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.
		return snprintf(sp, size, fmt_round, (uint)value);
data/xfsprogs-5.6.0/quota/util.c:94:10:  [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.
		return snprintf(sp, size, fmt_not_round, v);
data/xfsprogs-5.6.0/repair/err_protos.h:9:24:  [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,1,2)));
data/xfsprogs-5.6.0/repair/err_protos.h:12:24:  [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,1,2)));
data/xfsprogs-5.6.0/repair/err_protos.h:15:24:  [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,1,2)));
data/xfsprogs-5.6.0/repair/err_protos.h:18:24:  [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,1,2)));
data/xfsprogs-5.6.0/repair/prefetch.c:1143: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(buf, sizeof(buf), msg, args);
data/xfsprogs-5.6.0/repair/progress.c:243:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			sprintf (msgbuf, *msgp->format->fmt,
data/xfsprogs-5.6.0/repair/progress.c:249:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			sprintf (msgbuf, *msgp->format->fmt,
data/xfsprogs-5.6.0/repair/progress.c:347:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			sprintf (msgbuf, _(*msgp->format->fmt),
data/xfsprogs-5.6.0/repair/progress.c:353:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			sprintf (msgbuf, _(*msgp->format->fmt),
data/xfsprogs-5.6.0/repair/progress.c:447: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(buf, temp);
data/xfsprogs-5.6.0/repair/progress.c:453:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(buf, temp);
data/xfsprogs-5.6.0/repair/progress.c:464: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(buf, temp);
data/xfsprogs-5.6.0/repair/progress.c:470:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(buf, temp);
data/xfsprogs-5.6.0/repair/progress.c:482: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(buf, temp);
data/xfsprogs-5.6.0/repair/progress.c:488:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(buf, temp);
data/xfsprogs-5.6.0/repair/progress.c:497:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(buf, temp);
data/xfsprogs-5.6.0/repair/rmap.c:20:35:  [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.
# define dbg_printf(f, a...)  do {printf(f, ## a); fflush(stdout); } while (0)
data/xfsprogs-5.6.0/repair/slab.c:12:35:  [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.
# define dbg_printf(f, a...)  do {printf(f, ## a); fflush(stdout); } while (0)
data/xfsprogs-5.6.0/repair/xfs_repair.c:352: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, msg, args);
data/xfsprogs-5.6.0/repair/xfs_repair.c:368: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, msg, args);
data/xfsprogs-5.6.0/repair/xfs_repair.c:382: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, msg, args);
data/xfsprogs-5.6.0/repair/xfs_repair.c:394: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, msg, args);
data/xfsprogs-5.6.0/scrub/common.c:128:3:  [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(stream, format, args);
data/xfsprogs-5.6.0/scrub/common.c:188: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(buf + sz, LOG_BUFSZ - sz, format, args);
data/xfsprogs-5.6.0/scrub/common.c:420: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.
	ret += vsnprintf(buf + ret, buflen - ret, format, args);
data/xfsprogs-5.6.0/scrub/common.h:51:22:  [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.
	do {if (debug > 1) {printf(fmt, __VA_ARGS__);}} while (0)
data/xfsprogs-5.6.0/scrub/phase6.c:396:3:  [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.
		snprintf(buf, DESCR_BUFSZ, _("disk offset %"PRIu64),
data/xfsprogs-5.6.0/scrub/progress.c:164:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(pt.fp, CLEAR_EOL);
data/xfsprogs-5.6.0/scrub/xfs_scrub.c:581:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, msg, ctx->mntpoint);
data/xfsprogs-5.6.0/scrub/xfs_scrub.c:728: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(_PATH_PROC_MOUNTS, R_OK) == 0)
data/xfsprogs-5.6.0/spaceman/health.c:288:4:  [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.
			snprintf(descr, sizeof(descr) - 1, _("inode %"PRIu64),
data/xfsprogs-5.6.0/copy/xfs_copy.c:573: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, "bdL:V")) != EOF)  {
data/xfsprogs-5.6.0/db/attrset.c:82: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, "rusCRnv:")) != EOF) {
data/xfsprogs-5.6.0/db/attrset.c:186: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, "rusn")) != EOF) {
data/xfsprogs-5.6.0/db/bmap.c:144:24:  [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.
	if (argc) while ((c = getopt(argc, argv, "ad")) != EOF) {
data/xfsprogs-5.6.0/db/btdump.c:458: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, "ai")) != EOF) {
data/xfsprogs-5.6.0/db/btheight.c:310: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, "b:n:w:")) != -1) {
data/xfsprogs-5.6.0/db/check.c:961:15:  [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.
	len = (int)((random() % (ltabp->max - ltabp->min + 1)) + ltabp->min);
data/xfsprogs-5.6.0/db/check.c:968:23:  [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.
		bit_offset += (int)(random() % (int)((iocur_top->len - bit_offset) * NBBY));
data/xfsprogs-5.6.0/db/check.c:995:18:  [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.
			newbit = (int)random() & 1;
data/xfsprogs-5.6.0/db/check.c:1067: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, "0123n:o:s:t:x:y:z")) != EOF) {
data/xfsprogs-5.6.0/db/check.c:1170:2:  [3] (random) srandom:
  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.
	srandom(seed);
data/xfsprogs-5.6.0/db/check.c:1173:13:  [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.
				&lentab[random() % lentablen], mode);
data/xfsprogs-5.6.0/db/check.c:1189:39:  [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.
		randb = (xfs_rfsblock_t)((((int64_t)random() << 32) |
data/xfsprogs-5.6.0/db/check.c:1190:7:  [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.
					 random()) % blocks);
data/xfsprogs-5.6.0/db/check.c:1206:14:  [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.
					&lentab[random() % lentablen], mode);
data/xfsprogs-5.6.0/db/check.c:1242: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, "c:n")) != EOF) {
data/xfsprogs-5.6.0/db/check.c:1883: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, "b:i:npstv")) != EOF) {
data/xfsprogs-5.6.0/db/check.c:1984: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, "i:s")) != EOF) {
data/xfsprogs-5.6.0/db/crc.c:76:24:  [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.
	if (argc) while ((c = getopt(argc, argv, "irv")) != EOF) {
data/xfsprogs-5.6.0/db/dquot.c:103: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, "gpu")) != EOF) {
data/xfsprogs-5.6.0/db/frag.c:179: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, "adflqRrv")) != EOF) {
data/xfsprogs-5.6.0/db/freesp.c:139: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, "A:a:bcde:h:m:s")) != EOF) {
data/xfsprogs-5.6.0/db/fsmap.c:117: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, "")) != EOF) {
data/xfsprogs-5.6.0/db/fuzz.c:98: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")) != EOF) {
data/xfsprogs-5.6.0/db/fuzz.c:334:16:  [3] (random) lrand48:
  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.
		*b++ = (char)lrand48();
data/xfsprogs-5.6.0/db/init.c:57: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, "c:fFip:rxVl:")) != EOF) {
data/xfsprogs-5.6.0/db/logformat.c:29: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, "c:s:")) != EOF) {
data/xfsprogs-5.6.0/db/metadump.c:749:27:  [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.
	return filename_alphabet[random() % (sizeof filename_alphabet - 1)];
data/xfsprogs-5.6.0/db/metadump.c:2957: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, "aegm:ow")) != EOF) {
data/xfsprogs-5.6.0/db/write.c:109: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")) != EOF) {
data/xfsprogs-5.6.0/db/write.c:404:18:  [3] (random) lrand48:
  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.
		*buf++ = (char)lrand48();
data/xfsprogs-5.6.0/estimate/xfs_estimate.c:91: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, "b:hdve:i:V")) != EOF) {
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:143: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, "C:p:e:MgsdnvTt:f:m:b:N:FV")) != -1) {
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:184:8:  [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("FSRXFSTEST") != NULL) {
data/xfsprogs-5.6.0/growfs/xfs_growfs.c:77: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, "dD:e:ilL:m:np:rR:t:xV")) != EOF) {
data/xfsprogs-5.6.0/growfs/xfs_growfs.c:136:7:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
	if (!realpath(argv[optind], rpath)) {
data/xfsprogs-5.6.0/io/attr.c:191: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, "DRav")) != EOF) {
data/xfsprogs-5.6.0/io/bmap.c:70: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, "acdeln:pv")) != EOF) {
data/xfsprogs-5.6.0/io/bulkstat.c:111: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, "a:de:n:s:v:")) != -1) {
data/xfsprogs-5.6.0/io/bulkstat.c:251: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, "dv:")) != -1) {
data/xfsprogs-5.6.0/io/bulkstat.c:367: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, "a:de:n:s:v:")) != -1) {
data/xfsprogs-5.6.0/io/copy_file_range.c:86:16:  [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 ((opt = getopt(argc, argv, "s:d:l:f:")) != -1) {
data/xfsprogs-5.6.0/io/cowextsize.c:141: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, "DR")) != EOF) {
data/xfsprogs-5.6.0/io/encrypt.c:529: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, "1t")) != EOF) {
data/xfsprogs-5.6.0/io/encrypt.c:599: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, "c:n:f:v:")) != EOF) {
data/xfsprogs-5.6.0/io/encrypt.c:734: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, "d:k:")) != EOF) {
data/xfsprogs-5.6.0/io/encrypt.c:803: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, "a")) != EOF) {
data/xfsprogs-5.6.0/io/fadvise.c:45: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, "dnrsw")) != EOF) {
data/xfsprogs-5.6.0/io/fiemap.c:245: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, "aln:v")) != EOF) {
data/xfsprogs-5.6.0/io/fsmap.c:397: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, "dlmn:rv")) != EOF) {
data/xfsprogs-5.6.0/io/getrusage.c:37: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, "Cv")) != EOF) {
data/xfsprogs-5.6.0/io/init.c:149: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, "ac:C:dFfiLm:p:PnrRstTVx")) != EOF) {
data/xfsprogs-5.6.0/io/label.c:51: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, "cs:")) != EOF) {
data/xfsprogs-5.6.0/io/log_writes.c:57: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, "d:m:")) != EOF) {
data/xfsprogs-5.6.0/io/madvise.c:48: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, "drsw")) != EOF) {
data/xfsprogs-5.6.0/io/mmap.c:184: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, "rwxSs:")) != EOF) {
data/xfsprogs-5.6.0/io/mmap.c:316: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, "ais")) != EOF) {
data/xfsprogs-5.6.0/io/mmap.c:411: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, "frv")) != EOF) {
data/xfsprogs-5.6.0/io/mmap.c:577: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, "rS:")) != EOF) {
data/xfsprogs-5.6.0/io/mmap.c:669: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, "f:m")) != EOF) {
data/xfsprogs-5.6.0/io/open.c:251: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, "FLPRTacdfm:nrstx")) != EOF) {
data/xfsprogs-5.6.0/io/open.c:426: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, "DR")) != EOF) {
data/xfsprogs-5.6.0/io/open.c:504: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, "DR")) != EOF) {
data/xfsprogs-5.6.0/io/open.c:661: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, "DR")) != EOF) {
data/xfsprogs-5.6.0/io/open.c:778: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, "nv")) != EOF) {
data/xfsprogs-5.6.0/io/open.c:906: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, "rw")) != EOF) {
data/xfsprogs-5.6.0/io/parent.c:385: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, "cpv")) != EOF) {
data/xfsprogs-5.6.0/io/pread.c:224:2:  [3] (random) srandom:
  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.
	srandom(seed);
data/xfsprogs-5.6.0/io/pread.c:238:22:  [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.
			off = ((offset + (random() % range)) / io_buffersize) *
data/xfsprogs-5.6.0/io/pread.c:384: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, "b:BCFRquvV:Z:")) != EOF) {
data/xfsprogs-5.6.0/io/prealloc.c:204: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, "cikpu")) != EOF) {
data/xfsprogs-5.6.0/io/prealloc.c:320: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, "k")) != EOF) {
data/xfsprogs-5.6.0/io/pwrite.c:122:2:  [3] (random) srandom:
  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.
	srandom(seed);
data/xfsprogs-5.6.0/io/pwrite.c:134:22:  [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.
			off = ((offset + (random() % range)) / io_buffersize) *
data/xfsprogs-5.6.0/io/pwrite.c:292: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, "b:BCdDf:Fi:NqRs:OS:uV:wWZ:")) != EOF) {
data/xfsprogs-5.6.0/io/readdir.c:142: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:o:v")) != EOF) {
data/xfsprogs-5.6.0/io/reflink.c:112: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, "Cq")) != EOF) {
data/xfsprogs-5.6.0/io/reflink.c:241: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, "Cq")) != EOF) {
data/xfsprogs-5.6.0/io/scrub.c:103: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, "")) != EOF) {
data/xfsprogs-5.6.0/io/seek.c:105: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, "adhrs")) != EOF) {
data/xfsprogs-5.6.0/io/sendfile.c:78: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, "Cf:i:q")) != EOF) {
data/xfsprogs-5.6.0/io/shutdown.c:21: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, "fv")) != -1) {
data/xfsprogs-5.6.0/io/stat.c:131: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, "rv")) != EOF) {
data/xfsprogs-5.6.0/io/stat.c:319: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, "m:rvFD")) != EOF) {
data/xfsprogs-5.6.0/io/sync_file_range.c:37: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, "abw")) != EOF) {
data/xfsprogs-5.6.0/libfrog/paths.c:92:14:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
	if (dir && !realpath(dir, dpath))
data/xfsprogs-5.6.0/libfrog/paths.c:94:17:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
	if (blkdev && !realpath(blkdev, dpath))
data/xfsprogs-5.6.0/libfrog/paths.c:100:15:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
		if (dir && !realpath(fs_table[i].fs_dir, rpath))
data/xfsprogs-5.6.0/libfrog/paths.c:102:18:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
		if (blkdev && !realpath(fs_table[i].fs_name, rpath))
data/xfsprogs-5.6.0/libfrog/paths.c:388:8:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
		if (!realpath(path, rpath))
data/xfsprogs-5.6.0/libfrog/paths.c:392:8:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
		if (!realpath(mnt->mnt_dir, rmnt_dir))
data/xfsprogs-5.6.0/libfrog/paths.c:394:8:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
		if (!realpath(mnt->mnt_fsname, rmnt_fsname))
data/xfsprogs-5.6.0/libhandle/jdm.c:65:7:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
	if (!realpath( mntpnt, resolved ))
data/xfsprogs-5.6.0/libxfs/init.c:945: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("LIBXFS_LEAK_CHECK") && leaked)
data/xfsprogs-5.6.0/libxfs/kmem.c:32: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("LIBXFS_LEAK_CHECK") && zone->allocated) {
data/xfsprogs-5.6.0/logprint/logprint.c:137: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, "bC:cdefl:iqnors:tDVv")) != EOF) {
data/xfsprogs-5.6.0/mdrestore/xfs_mdrestore.c:202: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, "giV")) != EOF) {
data/xfsprogs-5.6.0/mkfs/xfs_mkfs.c:3644: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, "b:d:i:l:L:m:n:KNp:qr:s:CfV")) != EOF) {
data/xfsprogs-5.6.0/quota/edit.c:267: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, "dgpu")) != EOF) {
data/xfsprogs-5.6.0/quota/edit.c:415: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, "f:gpu")) != EOF) {
data/xfsprogs-5.6.0/quota/edit.c:493: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, "bgipru")) != EOF) {
data/xfsprogs-5.6.0/quota/edit.c:624: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, "bdgipru")) != EOF) {
data/xfsprogs-5.6.0/quota/free.c:329: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, "bf:hNir")) != EOF) {
data/xfsprogs-5.6.0/quota/init.c:143: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, "c:d:D:fP:p:t:xV")) != EOF) {
data/xfsprogs-5.6.0/quota/project.c:272: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:p:sC")) != EOF) {
data/xfsprogs-5.6.0/quota/quot.c:334: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, "abcf:ghinpruv")) != EOF) {
data/xfsprogs-5.6.0/quota/quota.c:386: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, "bf:ghnNipruv")) != EOF) {
data/xfsprogs-5.6.0/quota/report.c:198: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, "f:gpuL:U:")) != EOF) {
data/xfsprogs-5.6.0/quota/report.c:666: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, "abdf:ghilL:NnprtuU:")) != EOF) {
data/xfsprogs-5.6.0/quota/state.c:249: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, "af:gpuv")) != EOF) {
data/xfsprogs-5.6.0/quota/state.c:408: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, "gpuv")) != EOF) {
data/xfsprogs-5.6.0/quota/state.c:450: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, "gpuv")) != EOF) {
data/xfsprogs-5.6.0/quota/state.c:492: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, "gpuv")) != EOF) {
data/xfsprogs-5.6.0/quota/state.c:534: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, "gpuv")) != EOF) {
data/xfsprogs-5.6.0/repair/dinode.c:117:30:  [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.
	dinoc->di_gen = cpu_to_be32(random());
data/xfsprogs-5.6.0/repair/xfs_repair.c:212: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, "c:o:fl:m:r:LnDvVdPet:")) != EOF)  {
data/xfsprogs-5.6.0/rtcp/xfs_rtcp.c:35: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, "pe:V")) != EOF) {
data/xfsprogs-5.6.0/scrub/common.h:68: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.
	return debug && getenv(name) != NULL;
data/xfsprogs-5.6.0/scrub/disk.c:300:7:  [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.
		p = getenv("XFS_SCRUB_DISK_ERROR_INTERVAL");
data/xfsprogs-5.6.0/scrub/disk.c:356:7:  [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("XFS_SCRUB_DISK_VERIFY_SKIP"))
data/xfsprogs-5.6.0/scrub/xfs_scrub.c:428: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_phase = atoi(getenv("XFS_SCRUB_PHASE"));
data/xfsprogs-5.6.0/scrub/xfs_scrub.c:610: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, "a:bC:de:km:nTvxV")) != EOF) {
data/xfsprogs-5.6.0/scrub/xfs_scrub.c:683:15:  [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.
		x = cvt_u32(getenv("XFS_SCRUB_THREADS"), 10);
data/xfsprogs-5.6.0/scrub/xfs_scrub.c:703: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("SERVICE_MODE"))
data/xfsprogs-5.6.0/spaceman/freesp.c:263: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, "a:bde:gh:m:rs")) != EOF) {
data/xfsprogs-5.6.0/spaceman/health.c:325: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, OPT_STRING)) != EOF) {
data/xfsprogs-5.6.0/spaceman/health.c:365: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, OPT_STRING)) != EOF) {
data/xfsprogs-5.6.0/spaceman/init.c:74: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, "c:p:V")) != EOF) {
data/xfsprogs-5.6.0/spaceman/prealloc.c:31: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, "g:m:p:su:")) != EOF) {
data/xfsprogs-5.6.0/spaceman/trim.c:37: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, "a:fm:")) != EOF) {
data/xfsprogs-5.6.0/copy/xfs_copy.c:313: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 *bar[11] = {
data/xfsprogs-5.6.0/copy/xfs_copy.c:596:11:  [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).
		logfd = open(logfile_name, O_CREAT|O_WRONLY|O_EXCL, 0600);
data/xfsprogs-5.6.0/copy/xfs_copy.c:599:11:  [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).
		logfd = mkstemp(logfile_name);
data/xfsprogs-5.6.0/copy/xfs_copy.c:638:19:  [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 ((source_fd = open(source_name, open_flags)) < 0)  {
data/xfsprogs-5.6.0/copy/xfs_copy.c:836:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		target[i].fd = open(target[i].name, open_flags, 0644);
data/xfsprogs-5.6.0/copy/xfs_copy.c:867: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	*lb[XFS_MAX_SECTORSIZE] = { NULL };
data/xfsprogs-5.6.0/db/bit.c:150:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(out + byteize(bitoff), in, byteize(nbits));
data/xfsprogs-5.6.0/db/btdump.c:38: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[PATH_MAX];
data/xfsprogs-5.6.0/db/check.c:438: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(id->name, name, namelen);
data/xfsprogs-5.6.0/db/check.c:3598:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((char *)sumfile + sumbno * mp->m_sb.sb_blocksize, bytes,
data/xfsprogs-5.6.0/db/fprint.c:160: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	bp[40];	/* UUID string is 36 chars + trailing '\0' */
data/xfsprogs-5.6.0/db/freesp.c:122:36:  [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).
	aglist[agcount] = (xfs_agnumber_t)atoi(a);
data/xfsprogs-5.6.0/db/freesp.c:142:16:  [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).
			alignment = atoi(optarg);
data/xfsprogs-5.6.0/db/freesp.c:162:16:  [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).
			equalsize = atoi(optarg);
data/xfsprogs-5.6.0/db/freesp.c:168:15:  [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).
			addhistent(atoi(optarg));
data/xfsprogs-5.6.0/db/freesp.c:174:15:  [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).
			multsize = atoi(optarg);
data/xfsprogs-5.6.0/db/hash.c:44:41:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	hashval = libxfs_da_hashname((unsigned char *)argv[1], (int)strlen(argv[1]));
data/xfsprogs-5.6.0/db/input.c:129: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	prompt[FILENAME_MAX + 1];
data/xfsprogs-5.6.0/db/input.c:139: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/xfsprogs-5.6.0/db/input.c:317:6:  [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).
	f = fopen(argv[1], "r");
data/xfsprogs-5.6.0/db/io.c:545:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(iocur_top->bbmap, bbmap, sizeof(struct bbmap));
data/xfsprogs-5.6.0/db/io.c:656: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	tagbuf[8];
data/xfsprogs-5.6.0/db/metadump.c:90: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[200];
data/xfsprogs-5.6.0/db/metadump.c:109: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[60];
data/xfsprogs-5.6.0/db/metadump.c:167:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&block_buffer[cur_index << BBSHIFT], data, BBSIZE);
data/xfsprogs-5.6.0/db/metadump.c:678:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char		name[1];
data/xfsprogs-5.6.0/db/metadump.c:730: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(ent->name, name, namelen);
data/xfsprogs-5.6.0/db/metadump.c:782: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			s[24];	/* 21 is enough (64 bits in decimal) */
data/xfsprogs-5.6.0/db/metadump.c:1152:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	new_name[name_len + 1];
data/xfsprogs-5.6.0/db/metadump.c:1165:4:  [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(new_name, name, name_len);
data/xfsprogs-5.6.0/db/metadump.c:1176: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(name, new_name, name_len);
data/xfsprogs-5.6.0/db/metadump.c:3078: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).
		outf = fopen(argv[optind], "wb");
data/xfsprogs-5.6.0/db/output.c:70:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			log_file = fopen(argv[2], "a");
data/xfsprogs-5.6.0/db/print.c:93: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[16];
data/xfsprogs-5.6.0/db/sb.c:323:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&uu, &tsb.sb_uuid, sizeof(uuid_t));
data/xfsprogs-5.6.0/db/sb.c:342:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&tsb.sb_meta_uuid, &tsb.sb_uuid, sizeof(uuid_t));
data/xfsprogs-5.6.0/db/sb.c:354: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(&tsb.sb_uuid, uuid, sizeof(uuid_t));
data/xfsprogs-5.6.0/db/sb.c:365: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	        bp[40];
data/xfsprogs-5.6.0/db/sb.c:393:4:  [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(&uu, uup, sizeof(uuid_t));
data/xfsprogs-5.6.0/db/sb.c:406:4:  [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(&uu, mp->m_sb.sb_meta_uuid, sizeof(uuid_t));
data/xfsprogs-5.6.0/db/sb.c:446:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(&uu, uup, sizeof(uuid_t));
data/xfsprogs-5.6.0/db/sb.c:492: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	lbl[sizeof(tsb.sb_fname) + 1];
data/xfsprogs-5.6.0/db/sb.c:501:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&lbl[0], &tsb.sb_fname, sizeof(tsb.sb_fname));
data/xfsprogs-5.6.0/db/sb.c:517: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(&tsb.sb_fname, label, len);
data/xfsprogs-5.6.0/db/sb.c:518: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(&lbl[0], &tsb.sb_fname, sizeof(tsb.sb_fname));
data/xfsprogs-5.6.0/db/sb.c:627: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	s[1024];
data/xfsprogs-5.6.0/db/sb.c:630:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(s, "V1");
data/xfsprogs-5.6.0/db/sb.c:632:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(s, "V2");
data/xfsprogs-5.6.0/db/sb.c:634:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(s, "V3");
data/xfsprogs-5.6.0/db/sb.c:636:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(s, "V4");
data/xfsprogs-5.6.0/db/sb.c:638:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(s, "V5");
data/xfsprogs-5.6.0/db/sb.c:645:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(s, ",NLINK");
data/xfsprogs-5.6.0/db/sb.c:647:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(s, ",SHARED");
data/xfsprogs-5.6.0/db/sb.c:649:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(s, ",DIRV2");
data/xfsprogs-5.6.0/db/sb.c:652:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(s, ",ATTR");
data/xfsprogs-5.6.0/db/sb.c:654:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(s, ",QUOTA");
data/xfsprogs-5.6.0/db/sb.c:656:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(s, ",ALIGN");
data/xfsprogs-5.6.0/db/sb.c:658:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(s, ",DALIGN");
data/xfsprogs-5.6.0/db/sb.c:660:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(s, ",LOGV2");
data/xfsprogs-5.6.0/db/sb.c:663:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(s, ",EXTFLG");
data/xfsprogs-5.6.0/db/sb.c:665:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(s, ",SECTOR");
data/xfsprogs-5.6.0/db/sb.c:667:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(s, ",ASCII_CI");
data/xfsprogs-5.6.0/db/sb.c:669:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(s, ",MOREBITS");
data/xfsprogs-5.6.0/db/sb.c:671:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(s, ",ATTR2");
data/xfsprogs-5.6.0/db/sb.c:673:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(s, ",LAZYSBCOUNT");
data/xfsprogs-5.6.0/db/sb.c:675:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(s, ",PROJID32BIT");
data/xfsprogs-5.6.0/db/sb.c:677:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(s, ",CRC");
data/xfsprogs-5.6.0/db/sb.c:679:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(s, ",FTYPE");
data/xfsprogs-5.6.0/db/sb.c:681:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(s, ",FINOBT");
data/xfsprogs-5.6.0/db/sb.c:683:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(s, ",SPARSE_INODES");
data/xfsprogs-5.6.0/db/sb.c:685:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(s, ",META_UUID");
data/xfsprogs-5.6.0/db/sb.c:687:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(s, ",RMAPBT");
data/xfsprogs-5.6.0/db/sb.c:689:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(s, ",REFLINK");
data/xfsprogs-5.6.0/db/write.c:226: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(base, base+shift, len-shift);
data/xfsprogs-5.6.0/db/write.c:255: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(base+shift, base, len-shift);
data/xfsprogs-5.6.0/db/write.c:286: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(hold_region, base, shift);
data/xfsprogs-5.6.0/db/write.c:287: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(base, base+shift, len-shift);
data/xfsprogs-5.6.0/db/write.c:288: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(base+(len-shift), hold_region, shift);
data/xfsprogs-5.6.0/db/write.c:319: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(hold_region, base+(len-shift), shift);
data/xfsprogs-5.6.0/db/write.c:321: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(base, hold_region, shift);
data/xfsprogs-5.6.0/estimate/xfs_estimate.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 dname[40];
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:168: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).
			howlong = atoi(optarg);
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:177:21:  [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).
			argv_blksz_dio = atoi(optarg);
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:180: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).
			npasses = atoi(optarg);
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:185: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).
				nfrags = atoi(optarg);
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:397: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[SMBUFSZ];
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:411: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 ( (fd = open(leftofffile, O_RDONLY)) == -1 ) {
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:465: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).
				startpass = atoi(++ptr);
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:555: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[SMBUFSZ];
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:565:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open(leftofffile, O_WRONLY|O_CREAT|O_EXCL, 0644);
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:590: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	fname[64];
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:665:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(fname, "ino=%lld", (long long)p->bs_ino);
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:990:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char		name[64];
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:1056:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char val[2048];
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:1149: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		ffname[SMBUFSZ];
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:1172: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(tname, openopts, 0666)) < 0) {
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:1227: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 ((ffd = open(ffname, openopts, 0666)) < 0) {
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:1447: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[PATH_MAX+1];
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:1448: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		sbuf[SMBUFSZ];
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:1451:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(sbuf, "/.fsr%d", getpid());
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:1475: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[PATH_MAX+1];
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:1672: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[SMBUFSZ];
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:1711: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[SMBUFSZ];
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:1727: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[SMBUFSZ];
data/xfsprogs-5.6.0/growfs/xfs_growfs.c: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			rpath[PATH_MAX];
data/xfsprogs-5.6.0/growfs/xfs_growfs.c:86:12:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			esize = atol(optarg);
data/xfsprogs-5.6.0/growfs/xfs_growfs.c:100:13:  [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).
			maxpct = atoi(optarg);
data/xfsprogs-5.6.0/growfs/xfs_growfs.c:157:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	ffd = open(fname, O_RDONLY);
data/xfsprogs-5.6.0/include/linux.h:201:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	fsx_pad[8];
data/xfsprogs-5.6.0/include/parent.h:13: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	p_name[1];
data/xfsprogs-5.6.0/include/xqm.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		d_padding4[8];	/* yet more padding */
data/xfsprogs-5.6.0/io/attr.c:165: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(path, O_RDONLY)) == -1) {
data/xfsprogs-5.6.0/io/attr.c:245: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(path, O_RDONLY)) == -1) {
data/xfsprogs-5.6.0/io/bmap.c:87: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).
			nflag = atoi(optarg);
data/xfsprogs-5.6.0/io/bmap.c:276:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char	rbuf[32], bbuf[32], abuf[32];
data/xfsprogs-5.6.0/io/copy_file_range.c:125:18:  [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).
			src_file_nr = atoi(argv[1]);
data/xfsprogs-5.6.0/io/cowextsize.c:97:7:  [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).
	fd = open(path, O_RDONLY);
data/xfsprogs-5.6.0/io/cowextsize.c:120:7:  [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).
	fd = open(path, O_RDONLY);
data/xfsprogs-5.6.0/io/encrypt.c:302: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/xfsprogs-5.6.0/io/encrypt.c:309:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf, "0x%02x", mode);
data/xfsprogs-5.6.0/io/encrypt.c:342: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.
static const char *
data/xfsprogs-5.6.0/io/encrypt.c:345: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[2 * FSCRYPT_KEY_DESCRIPTOR_SIZE + 1];
data/xfsprogs-5.6.0/io/encrypt.c:349:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(&buf[2 * i], "%02x", master_key_descriptor[i]);
data/xfsprogs-5.6.0/io/encrypt.c:354: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.
static const char *
data/xfsprogs-5.6.0/io/encrypt.c:357: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[2 * FSCRYPT_KEY_IDENTIFIER_SIZE + 1];
data/xfsprogs-5.6.0/io/encrypt.c:361:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(&buf[2 * i], "%02x", master_key_identifier[i]);
data/xfsprogs-5.6.0/io/encrypt.c:391:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
str2keydesc(const char *str,
data/xfsprogs-5.6.0/io/encrypt.c:402: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.
str2keyid(const char *str,
data/xfsprogs-5.6.0/io/encrypt.c:676:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(policy.v2.master_key_identifier, key_spec.u.identifier,
data/xfsprogs-5.6.0/io/encrypt.c:686:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(policy.v1.master_key_descriptor, key_spec.u.descriptor,
data/xfsprogs-5.6.0/io/fiemap.c:56:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	   char		lbuf[48];
data/xfsprogs-5.6.0/io/fiemap.c:91: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			lbuf[48];
data/xfsprogs-5.6.0/io/fiemap.c:92: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			bbuf[48];
data/xfsprogs-5.6.0/io/fiemap.c:93: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			flgbuf[16];
data/xfsprogs-5.6.0/io/fiemap.c:188: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			lbuf[32];
data/xfsprogs-5.6.0/io/fiemap.c:189: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			bbuf[32];
data/xfsprogs-5.6.0/io/fiemap.c:254:18:  [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).
			max_extents = atoi(optarg);
data/xfsprogs-5.6.0/io/file.c:69:6:  [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).
	i = atoi(argv[1]);
data/xfsprogs-5.6.0/io/fsmap.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			owner[OWNER_BUF_SZ];
data/xfsprogs-5.6.0/io/fsmap.c:174: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			rbuf[40], bbuf[40], abuf[40], obuf[40];
data/xfsprogs-5.6.0/io/fsmap.c:175: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			nbuf[40], dbuf[40], gbuf[40];
data/xfsprogs-5.6.0/io/fsmap.c:176: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			owner[OWNER_BUF_SZ];
data/xfsprogs-5.6.0/io/getrusage.c:32: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		ts[64];
data/xfsprogs-5.6.0/io/imap.c:29:10:  [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).
		nent = atoi(argv[1]);
data/xfsprogs-5.6.0/io/label.c:43: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		label[FSLABEL_MAX + 1];
data/xfsprogs-5.6.0/io/log_writes.c:20: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		message[size];
data/xfsprogs-5.6.0/io/mmap.c:33: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		buffer[8] = { 0 };
data/xfsprogs-5.6.0/io/mmap.c:50:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(&buffer[i], " S");
data/xfsprogs-5.6.0/io/mmap.c:113:6:  [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).
	i = atoi(argv[1]);
data/xfsprogs-5.6.0/io/open.c:99:7:  [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).
	fd = open(path, oflags, mode);
data/xfsprogs-5.6.0/io/open.c:107:9:  [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).
			fd = open(path, oflags, mode);
data/xfsprogs-5.6.0/io/open.c:403: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(path, O_RDONLY)) == -1) {
data/xfsprogs-5.6.0/io/open.c:482: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(path, O_RDONLY)) == -1) {
data/xfsprogs-5.6.0/io/open.c:615: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(path, O_RDONLY)) == -1) {
data/xfsprogs-5.6.0/io/open.c:639: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(path, O_RDONLY)) == -1) {
data/xfsprogs-5.6.0/io/parent.c:32: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 fullpath[PATH_MAX];
data/xfsprogs-5.6.0/io/readdir.c:133: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 s1[64], s2[64], ts[64];
data/xfsprogs-5.6.0/io/sendfile.c:87:9:  [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).
			fd = atoi(argv[1]);
data/xfsprogs-5.6.0/libfrog/avl64.c:1196: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		linebuf[256], cmd[256];
data/xfsprogs-5.6.0/libfrog/avl64.c:1226:8:  [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).
			j = atoi(linebuf);
data/xfsprogs-5.6.0/libfrog/avl64.c:1250:8:  [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).
			j = atoi(linebuf);
data/xfsprogs-5.6.0/libfrog/avl64.c:1261:8:  [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).
			j = atoi(linebuf);
data/xfsprogs-5.6.0/libfrog/avl64.c:1265:15:  [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).
			checklen = atoi(linebuf);
data/xfsprogs-5.6.0/libfrog/bulkstat.c:75: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(bulkstat, req->bulkstat, sizeof(struct xfs_bulkstat));
data/xfsprogs-5.6.0/libfrog/crc32.c:60:30:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
crc32_body(u32 crc, unsigned char const *buf, size_t len, const u32 (*tab)[256])
data/xfsprogs-5.6.0/libfrog/crc32.c:133:61:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 inline u32 __pure crc32_le_generic(u32 crc, unsigned char const *p,
data/xfsprogs-5.6.0/libfrog/fsgeom.c:131: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).
	xfd->fd = open(pathname, flags);
data/xfsprogs-5.6.0/libfrog/linux.c:48: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		mounts[MAXPATHLEN];
data/xfsprogs-5.6.0/libfrog/paths.c:86: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		rpath[PATH_MAX];
data/xfsprogs-5.6.0/libfrog/paths.c:87: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		dpath[PATH_MAX];
data/xfsprogs-5.6.0/libfrog/paths.c:372: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		rpath[PATH_MAX], rmnt_fsname[PATH_MAX], rmnt_dir[PATH_MAX];
data/xfsprogs-5.6.0/libfrog/projects.c:34:13:  [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).
	projects = fopen(projid_file, "r");
data/xfsprogs-5.6.0/libfrog/projects.c:41:18:  [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).
	project_paths = fopen(projects_file, "r");
data/xfsprogs-5.6.0/libfrog/projects.c:64: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	projects_buffer[512];
data/xfsprogs-5.6.0/libfrog/projects.c:87:15:  [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).
		p.pr_prid = atoi(idstart+1);
data/xfsprogs-5.6.0/libfrog/projects.c:127: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	project_paths_buffer[1024];
data/xfsprogs-5.6.0/libfrog/projects.c:151:16:  [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).
		pp.pp_prid = atoi(&project_paths_buffer[0]);
data/xfsprogs-5.6.0/libfrog/ptvar.c:32:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	data[0];
data/xfsprogs-5.6.0/libfrog/radix-tree.c:108: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 tags[RADIX_TREE_MAX_TAGS];
data/xfsprogs-5.6.0/libfrog/radix-tree.c:677: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 tags[RADIX_TREE_MAX_TAGS];
data/xfsprogs-5.6.0/libfrog/topology.c:117:7:  [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).
	fd = open(device, O_RDONLY);
data/xfsprogs-5.6.0/libfrog/topology.c:313:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open(dfile, flags, 0666);
data/xfsprogs-5.6.0/libhandle/handle.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	fsh[FSIDSIZE];
data/xfsprogs-5.6.0/libhandle/handle.c:48: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	fspath[MAXPATHLEN];
data/xfsprogs-5.6.0/libhandle/handle.c:84:7:  [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).
	fd = open(fspath, O_RDONLY);
data/xfsprogs-5.6.0/libhandle/handle.c:111:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(fdhp->fsh, *fshanp, FSIDSIZE);
data/xfsprogs-5.6.0/libhandle/handle.c:135:7:  [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).
	fd = open(fspath, O_RDONLY);
data/xfsprogs-5.6.0/libhandle/handle.c:157: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 dirpath[MAXPATHLEN];
data/xfsprogs-5.6.0/libhandle/handle.c:201: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(*fshanp, hanp, FSIDSIZE);
data/xfsprogs-5.6.0/libhandle/handle.c:235: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		hbuf [MAXHANSIZ];
data/xfsprogs-5.6.0/libhandle/handle.c:264: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(*hanp, hbuf, handlen);
data/xfsprogs-5.6.0/libhandle/handle.c:407: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(cursor, &alhreq.pos, sizeof(alhreq.pos));
data/xfsprogs-5.6.0/libhandle/jdm.c:16: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 fsh_space[FSHANDLE_SZ];
data/xfsprogs-5.6.0/libhandle/jdm.c:26: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 fh_pad[FILEHANDLE_SZ_PAD];	/* padding, must be zeroed */
data/xfsprogs-5.6.0/libhandle/jdm.c:49: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 resolved[MAXPATHLEN];
data/xfsprogs-5.6.0/libxcmd/command.c:247: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			s1[64], s2[64], ts[64];
data/xfsprogs-5.6.0/libxcmd/input.c:24: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	prompt[FILENAME_MAX + 2 /*"> "*/ + 1 /*"\0"*/ ];
data/xfsprogs-5.6.0/libxfs/init.c:109: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(path, flags, 0666)) < 0) {
data/xfsprogs-5.6.0/libxfs/init.c:291: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		dpath[25];
data/xfsprogs-5.6.0/libxfs/init.c:294: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		logpath[25];
data/xfsprogs-5.6.0/libxfs/init.c:297: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		rtpath[25];
data/xfsprogs-5.6.0/libxfs/init.c:318:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open(rawfile, O_RDONLY);
data/xfsprogs-5.6.0/libxfs/rdwr.c:133: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((char *)p + sizeof(xlog_op_header_t), &magic, sizeof(magic));
data/xfsprogs-5.6.0/libxfs/rdwr.c:1534: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(&head->h_fs_uuid, fs_uuid, sizeof(uuid_t));
data/xfsprogs-5.6.0/libxfs/xfs_attr.h:82: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	a_name[1];	/* attr name (NULL terminated) */
data/xfsprogs-5.6.0/libxfs/xfs_attr.h:91:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *)buffer)[ ((attrlist_t *)(buffer))->al_offset[index] ])
data/xfsprogs-5.6.0/libxfs/xfs_attr_leaf.c:496: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(args->value, value, valuelen);
data/xfsprogs-5.6.0/libxfs/xfs_attr_leaf.c:698: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(sfe->nameval, args->name, args->namelen);
data/xfsprogs-5.6.0/libxfs/xfs_attr_leaf.c:699: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(&sfe->nameval[args->namelen], args->value, args->valuelen);
data/xfsprogs-5.6.0/libxfs/xfs_attr_leaf.c:766: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.
		memmove(&((char *)sf)[base], &((char *)sf)[end], totsize - end);
data/xfsprogs-5.6.0/libxfs/xfs_attr_leaf.c:766:35:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		memmove(&((char *)sf)[base], &((char *)sf)[end], totsize - end);
data/xfsprogs-5.6.0/libxfs/xfs_attr_leaf.c:886: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(tmpbuffer, ifp->if_u1.if_data, size);
data/xfsprogs-5.6.0/libxfs/xfs_attr_leaf.c:1076: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(tmpbuffer, bp->b_addr, args->geo->blksize);
data/xfsprogs-5.6.0/libxfs/xfs_attr_leaf.c:1169: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(bp2->b_addr, bp1->b_addr, args->geo->blksize);
data/xfsprogs-5.6.0/libxfs/xfs_attr_leaf.c:1476:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((char *)name_loc->nameval, args->name, args->namelen);
data/xfsprogs-5.6.0/libxfs/xfs_attr_leaf.c:1477:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((char *)&name_loc->nameval[args->namelen], args->value,
data/xfsprogs-5.6.0/libxfs/xfs_attr_leaf.c:1482:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((char *)name_rmt->name, args->name, args->namelen);
data/xfsprogs-5.6.0/libxfs/xfs_attr_leaf.c:1536: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(tmpbuffer, bp->b_addr, args->geo->blksize);
data/xfsprogs-5.6.0/libxfs/xfs_attr_leaf.c:1546: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(bp->b_addr, tmpbuffer, xfs_attr3_leaf_hdr_size(leaf_src));
data/xfsprogs-5.6.0/libxfs/xfs_attr_leaf.c:1964:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&state->altpath, &state->path, sizeof(state->path));
data/xfsprogs-5.6.0/libxfs/xfs_attr_leaf.c:2021: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(&state->altpath, &state->path, sizeof(state->path));
data/xfsprogs-5.6.0/libxfs/xfs_attr_leaf.c:2261:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(tmp_leaf, save_leaf, xfs_attr3_leaf_hdr_size(save_leaf));
data/xfsprogs-5.6.0/libxfs/xfs_attr_leaf.c:2292:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(save_leaf, tmp_leaf, state->args->geo->blksize);
data/xfsprogs-5.6.0/libxfs/xfs_attr_remote.c:311:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(*dst, src + hdr_size, byte_cnt);
data/xfsprogs-5.6.0/libxfs/xfs_attr_remote.c:350:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dst + hdr_size, *src, byte_cnt);
data/xfsprogs-5.6.0/libxfs/xfs_bmap_btree.c:53: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(tkp, fkp, sizeof(*fkp) * dmxr);
data/xfsprogs-5.6.0/libxfs/xfs_bmap_btree.c:54: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(tpp, fpp, sizeof(*fpp) * dmxr);
data/xfsprogs-5.6.0/libxfs/xfs_bmap_btree.c:156: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(tkp, fkp, sizeof(*fkp) * dmxr);
data/xfsprogs-5.6.0/libxfs/xfs_bmap_btree.c:157: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(tpp, fpp, sizeof(*fpp) * dmxr);
data/xfsprogs-5.6.0/libxfs/xfs_btree.c:1288: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(dst_key, src_key, numkeys * cur->bc_ops->key_len);
data/xfsprogs-5.6.0/libxfs/xfs_btree.c:1302: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(dst_rec, src_rec, numrecs * cur->bc_ops->rec_len);
data/xfsprogs-5.6.0/libxfs/xfs_btree.c:1316: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(dst_ptr, src_ptr, numptrs * xfs_btree_ptr_len(cur));
data/xfsprogs-5.6.0/libxfs/xfs_btree.c:1991:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(high, &max_hkey, cur->bc_ops->key_len / 2);
data/xfsprogs-5.6.0/libxfs/xfs_btree.c:2008:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(key, xfs_btree_key_addr(cur, 1, block),
data/xfsprogs-5.6.0/libxfs/xfs_btree.c:2019:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(high, max_hkey, cur->bc_ops->key_len / 2);
data/xfsprogs-5.6.0/libxfs/xfs_btree.c:2021:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(key, xfs_btree_key_addr(cur, 1, block),
data/xfsprogs-5.6.0/libxfs/xfs_btree.c:2910: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(cblock, block, xfs_btree_block_len(cur));
data/xfsprogs-5.6.0/libxfs/xfs_da_btree.c:700: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(node, oldroot, size);
data/xfsprogs-5.6.0/libxfs/xfs_da_btree.c:925:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(btree_d, btree_s, tmp);
data/xfsprogs-5.6.0/libxfs/xfs_da_btree.c:936:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(btree_d, btree_s, tmp);
data/xfsprogs-5.6.0/libxfs/xfs_da_btree.c:1208: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(root_blk->bp->b_addr, bp->b_addr, args->geo->blksize);
data/xfsprogs-5.6.0/libxfs/xfs_da_btree.c:1276:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&state->altpath, &state->path, sizeof(state->path));
data/xfsprogs-5.6.0/libxfs/xfs_da_btree.c:1331: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(&state->altpath, &state->path, sizeof(state->path));
data/xfsprogs-5.6.0/libxfs/xfs_da_btree.c:1532: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(&save_btree[sindex], &drop_btree[0], tmp);
data/xfsprogs-5.6.0/libxfs/xfs_da_btree.c:2298: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(dead_buf->b_addr, last_buf->b_addr, args->geo->blksize);
data/xfsprogs-5.6.0/libxfs/xfs_da_format.h:739:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	return &((char *)leafp)[be16_to_cpu(entries[idx].nameidx)];
data/xfsprogs-5.6.0/libxfs/xfs_dir2.c:326: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(args->value, name, len);
data/xfsprogs-5.6.0/libxfs/xfs_dir2_block.c:540: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(dep->name, args->name, args->namelen);
data/xfsprogs-5.6.0/libxfs/xfs_dir2_block.c:1082: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(sfp, oldsfp, ifp->if_bytes);
data/xfsprogs-5.6.0/libxfs/xfs_dir2_block.c:1210:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dep->name, sfep->name, dep->namelen);
data/xfsprogs-5.6.0/libxfs/xfs_dir2_leaf.c:434: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(leafhdr.ents, blp,
data/xfsprogs-5.6.0/libxfs/xfs_dir2_leaf.c:858: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(dep->name, args->name, dep->namelen);
data/xfsprogs-5.6.0/libxfs/xfs_dir2_leaf.c:1779: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(xfs_dir2_leaf_bests_p(ltp), freehdr.bests,
data/xfsprogs-5.6.0/libxfs/xfs_dir2_node.c:993: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(&dents[start_d], &sents[start_s],
data/xfsprogs-5.6.0/libxfs/xfs_dir2_node.c:1528:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&state->altpath, &state->path, sizeof(state->path));
data/xfsprogs-5.6.0/libxfs/xfs_dir2_node.c:1589: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(&state->altpath, &state->path, sizeof(state->path));
data/xfsprogs-5.6.0/libxfs/xfs_dir2_node.c:1967: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(dep->name, args->name, dep->namelen);
data/xfsprogs-5.6.0/libxfs/xfs_dir2_sf.c:280: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(sfp, sfhp, xfs_dir2_sf_hdr_size(sfhp->i8count));
data/xfsprogs-5.6.0/libxfs/xfs_dir2_sf.c:318:4:  [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(sfep->name, dep->name, dep->namelen);
data/xfsprogs-5.6.0/libxfs/xfs_dir2_sf.c:485: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(sfep->name, args->name, sfep->namelen);
data/xfsprogs-5.6.0/libxfs/xfs_dir2_sf.c:535: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(oldsfp, sfp, old_isize);
data/xfsprogs-5.6.0/libxfs/xfs_dir2_sf.c:568: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(sfp, oldsfp, nbytes);
data/xfsprogs-5.6.0/libxfs/xfs_dir2_sf.c:575: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(sfep->name, args->name, sfep->namelen);
data/xfsprogs-5.6.0/libxfs/xfs_dir2_sf.c:586:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(sfep, oldsfep, old_isize - nbytes);
data/xfsprogs-5.6.0/libxfs/xfs_dir2_sf.c:1185: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(buf, oldsfp, oldsize);
data/xfsprogs-5.6.0/libxfs/xfs_dir2_sf.c:1213:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(sfep->name, oldsfep->name, sfep->namelen);
data/xfsprogs-5.6.0/libxfs/xfs_dir2_sf.c:1258: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(buf, oldsfp, oldsize);
data/xfsprogs-5.6.0/libxfs/xfs_dir2_sf.c:1286:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(sfep->name, oldsfep->name, sfep->namelen);
data/xfsprogs-5.6.0/libxfs/xfs_format.h:116: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		sb_fname[XFSLABEL_MAX]; /* file system name */
data/xfsprogs-5.6.0/libxfs/xfs_format.h:207: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		sb_fname[XFSLABEL_MAX]; /* file system name */
data/xfsprogs-5.6.0/libxfs/xfs_format.h:1182: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			dd_fill[4];/* filling for posterity */
data/xfsprogs-5.6.0/libxfs/xfs_fs.h:161:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	uuid[16];	/* unique id of the filesystem	*/
data/xfsprogs-5.6.0/libxfs/xfs_fs.h:187:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	uuid[16];	/* unique id of the filesystem	*/
data/xfsprogs-5.6.0/libxfs/xfs_fs.h:214:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	uuid[16];	/* unique id of the filesystem	*/
data/xfsprogs-5.6.0/libxfs/xfs_fs.h:375:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	bs_pad[2];	/* pad space, unused		*/
data/xfsprogs-5.6.0/libxfs/xfs_fs.h:654: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		sx_pad[16];	/* pad space, unused */
data/xfsprogs-5.6.0/libxfs/xfs_inode_fork.c:155:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ifp->if_u1.if_data, data, size);
data/xfsprogs-5.6.0/libxfs/xfs_inode_fork.c:419:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(new_broot, ifp->if_broot,
data/xfsprogs-5.6.0/libxfs/xfs_inode_fork.c:435:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(np, op, new_max * (uint)sizeof(xfs_bmbt_rec_t));
data/xfsprogs-5.6.0/libxfs/xfs_inode_fork.c:444:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(np, op, new_max * (uint)sizeof(xfs_fsblock_t));
data/xfsprogs-5.6.0/libxfs/xfs_inode_fork.c:625:4:  [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(cp, ifp->if_u1.if_data, ifp->if_bytes);
data/xfsprogs-5.6.0/libxfs/xfs_log_format.h:190: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			hic_sector[XLOG_HEADER_SIZE];
data/xfsprogs-5.6.0/libxfs/xfs_log_format.h:811: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			qf_pad[12];	/* padding for future */
data/xfsprogs-5.6.0/libxfs/xfs_sb.c:1068: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(geo->uuid, &sbp->sb_uuid, sizeof(sbp->sb_uuid));
data/xfsprogs-5.6.0/libxfs/xfs_symlink_remote.c:175:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(bp->b_addr, ifp->if_u1.if_data, ifp->if_bytes);
data/xfsprogs-5.6.0/libxfs/xfs_symlink_remote.c:191: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(buf, ifp->if_u1.if_data, ifp->if_bytes);
data/xfsprogs-5.6.0/libxlog/util.c:75:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char uu_log[64], uu_sb[64];
data/xfsprogs-5.6.0/libxlog/util.c:89:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&mp->m_sb.sb_uuid, &head->h_fs_uuid, sizeof(uuid_t));
data/xfsprogs-5.6.0/libxlog/xfs_log_recover.c:1038:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ptr, dp, len); /* d, s, l */
data/xfsprogs-5.6.0/libxlog/xfs_log_recover.c:1048: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(&ptr[old_len], dp, len); /* d, s, l */
data/xfsprogs-5.6.0/libxlog/xfs_log_recover.c:1091:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&trans->r_theader, dp, len); /* d, s, l */
data/xfsprogs-5.6.0/libxlog/xfs_log_recover.c:1096: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(ptr, dp, len);
data/xfsprogs-5.6.0/logprint/log_copy.c:23: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[XLOG_HEADER_SIZE];
data/xfsprogs-5.6.0/logprint/log_copy.c:25: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 ((ofd = open(filename, O_CREAT|O_EXCL|O_RDWR|O_TRUNC, 0666)) == -1) {
data/xfsprogs-5.6.0/logprint/log_dump.c:25: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[XLOG_HEADER_SIZE];
data/xfsprogs-5.6.0/logprint/log_misc.c:475: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		namebuf[257];
data/xfsprogs-5.6.0/logprint/log_misc.c:1028:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char uub[64];
data/xfsprogs-5.6.0/logprint/log_misc.c:1188: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			xhbuf[XLOG_HEADER_SIZE];
data/xfsprogs-5.6.0/logprint/log_misc.c:1261:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char			hbuf[XLOG_HEADER_SIZE];
data/xfsprogs-5.6.0/logprint/log_print_all.c:189: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			str[32] = { 0 };
data/xfsprogs-5.6.0/logprint/log_print_all.c:194:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(str, "USER QUOTA");
data/xfsprogs-5.6.0/logprint/log_print_all.c:196:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(str, "GROUP QUOTA");
data/xfsprogs-5.6.0/logprint/log_print_all.c:198:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(str, "PROJECT QUOTA");
data/xfsprogs-5.6.0/logprint/log_redo.c:28:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((char *)dst_efi_fmt, buf, len);
data/xfsprogs-5.6.0/logprint/log_redo.c:234:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((char *)dst_fmt, buf, len);
data/xfsprogs-5.6.0/logprint/log_redo.c:386:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dst_fmt, cui, len);
data/xfsprogs-5.6.0/logprint/log_redo.c:416: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(src_f, *ptr, src_len);
data/xfsprogs-5.6.0/logprint/log_redo.c:486: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(&lbuf, *ptr, min(core_size, len));
data/xfsprogs-5.6.0/logprint/log_redo.c:529:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dst_fmt, bui, len);
data/xfsprogs-5.6.0/logprint/log_redo.c:559: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(src_f, *ptr, src_len);
data/xfsprogs-5.6.0/logprint/log_redo.c:630: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(&lbuf, *ptr, min(core_size, len));
data/xfsprogs-5.6.0/logprint/logprint.c:58: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[BBSIZE];
data/xfsprogs-5.6.0/logprint/logprint.c:65: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(x.dname, O_RDONLY)) == -1) {
data/xfsprogs-5.6.0/logprint/logprint.c:107: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(x.logname, O_RDONLY)) == -1) {
data/xfsprogs-5.6.0/logprint/logprint.c:185:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				print_start = atoi(optarg);
data/xfsprogs-5.6.0/mdrestore/xfs_mdrestore.c:28: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[60];
data/xfsprogs-5.6.0/mdrestore/xfs_mdrestore.c:118:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char		*lb[XFS_MAX_SECTORSIZE] = { NULL };
data/xfsprogs-5.6.0/mdrestore/xfs_mdrestore.c:236:11:  [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).
		src_f = fopen(argv[optind], "rb");
data/xfsprogs-5.6.0/mdrestore/xfs_mdrestore.c:284:11:  [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).
	dst_fd = open(argv[optind], open_flags, 0644);
data/xfsprogs-5.6.0/mkfs/proto.c:66: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(fname, O_RDONLY)) < 0 || (size = filesize(fd)) < 0) {
data/xfsprogs-5.6.0/mkfs/proto.c:290: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(fname, O_RDONLY)) < 0 || (size = filesize(fd)) < 0) {
data/xfsprogs-5.6.0/mkfs/xfs_mkfs.c:197: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	*subopts[MAX_SUBOPTS];
data/xfsprogs-5.6.0/mkfs/xfs_mkfs.c:3264:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(sbp->sb_fname, cfg->label, label_len);
data/xfsprogs-5.6.0/quota/edit.c:370: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		buffer[512];
data/xfsprogs-5.6.0/quota/edit.c:371: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		dev[512];
data/xfsprogs-5.6.0/quota/edit.c:446:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(fname, "r")) == NULL) {
data/xfsprogs-5.6.0/quota/edit.c:664:10:  [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).
	value = atoi(argv[optind++]);
data/xfsprogs-5.6.0/quota/free.c:58: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(mount->fs_dir, O_RDONLY)) < 0) {
data/xfsprogs-5.6.0/quota/free.c:146: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(path->fs_dir, O_RDONLY)) < 0) {
data/xfsprogs-5.6.0/quota/free.c:222: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		a[8], s[8], u[8], p[8];
data/xfsprogs-5.6.0/quota/path.c:112:6:  [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).
	i = atoi(argv[1]);
data/xfsprogs-5.6.0/quota/project.c:104: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(path, O_RDONLY|O_NOCTTY)) == -1) {
data/xfsprogs-5.6.0/quota/project.c:149: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(path, O_RDONLY|O_NOCTTY)) == -1) {
data/xfsprogs-5.6.0/quota/project.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(path, O_RDONLY|O_NOCTTY)) == -1) {
data/xfsprogs-5.6.0/quota/project.c:278:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			recurse_depth = atoi(optarg);
data/xfsprogs-5.6.0/quota/quota.c:52: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		c[8], h[8], s[8];
data/xfsprogs-5.6.0/quota/quota.c:193: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	buffer[32];
data/xfsprogs-5.6.0/quota/quota.c:217:9:  [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).
			id = atoi(name);
data/xfsprogs-5.6.0/quota/quota.c:241: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	buffer[32];
data/xfsprogs-5.6.0/quota/quota.c:266:10:  [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).
			gid = atoi(name);
data/xfsprogs-5.6.0/quota/quota.c:311: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	buffer[32];
data/xfsprogs-5.6.0/quota/quota.c:341:8:  [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).
		id = atoi(name);
data/xfsprogs-5.6.0/quota/report.c:213:18:  [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).
			lower = (uint)atoi(optarg);
data/xfsprogs-5.6.0/quota/report.c:216:18:  [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).
			upper = (uint)atoi(optarg);
data/xfsprogs-5.6.0/quota/report.c:254: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		scratch[64];
data/xfsprogs-5.6.0/quota/report.c:334: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		c[8], h[8], s[8];
data/xfsprogs-5.6.0/quota/report.c:705:18:  [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).
			lower = (uint)atoi(optarg);
data/xfsprogs-5.6.0/quota/report.c:709:18:  [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).
			upper = (uint)atoi(optarg);
data/xfsprogs-5.6.0/quota/util.c:24: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	timestamp[32];
data/xfsprogs-5.6.0/quota/util.c:229: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[NMAX+1];
data/xfsprogs-5.6.0/quota/util.c:306:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(ncp, idp, sizeof(idcache_t));
data/xfsprogs-5.6.0/quota/util.c:318: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(ncp, idp, sizeof(idcache_t));
data/xfsprogs-5.6.0/quota/util.c:343:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(ncp, idp, sizeof(idcache_t));
data/xfsprogs-5.6.0/quota/util.c:355: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(ncp, idp, sizeof(idcache_t));
data/xfsprogs-5.6.0/quota/util.c:380:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(ncp, idp, sizeof(idcache_t));
data/xfsprogs-5.6.0/quota/util.c:392: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(ncp, idp, sizeof(idcache_t));
data/xfsprogs-5.6.0/quota/util.c:414: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(fname, O_CREAT|O_WRONLY|O_EXCL, 0600)) < 0) {
data/xfsprogs-5.6.0/repair/agheader.c:104:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char uu[64];
data/xfsprogs-5.6.0/repair/agheader.c:183:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char uu[64];
data/xfsprogs-5.6.0/repair/agheader.c:302:4:  [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(&tmpuuid, &sb->sb_meta_uuid, sizeof(uuid_t));
data/xfsprogs-5.6.0/repair/agheader.c:308:4:  [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(&sb->sb_meta_uuid, &tmpuuid, sizeof(uuid_t));
data/xfsprogs-5.6.0/repair/attr_repair.c:152:4:  [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(valuep, namevalue + namelen, valuelen);
data/xfsprogs-5.6.0/repair/avl.c:1175: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		linebuf[256], cmd[256];
data/xfsprogs-5.6.0/repair/avl.c:1205:8:  [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).
			j = atoi(linebuf);
data/xfsprogs-5.6.0/repair/avl.c:1229:8:  [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).
			j = atoi(linebuf);
data/xfsprogs-5.6.0/repair/avl.c:1240:8:  [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).
			j = atoi(linebuf);
data/xfsprogs-5.6.0/repair/avl.c:1244:15:  [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).
			checklen = atoi(linebuf);
data/xfsprogs-5.6.0/repair/dinode.c:1362: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			data[XFS_SYMLINK_MAXLEN];
data/xfsprogs-5.6.0/repair/dir2.c:158: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[MAXNAMELEN + 1];
data/xfsprogs-5.6.0/repair/phase6.c:304: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	*seevalstr[DIR_HASH_CK_TOTAL];
data/xfsprogs-5.6.0/repair/phase6.c:454:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(name, p->name.name, p->name.len);
data/xfsprogs-5.6.0/repair/phase6.c:1082:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char		fname[MAXPATHLEN + 1];
data/xfsprogs-5.6.0/repair/phase6.c:1502: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			fname[MAXNAMELEN + 1];
data/xfsprogs-5.6.0/repair/phase6.c:2529: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			fname[MAXNAMELEN + 1];
data/xfsprogs-5.6.0/repair/prefetch.c:246:6:  [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(map, old_map, sizeof(map_array));
data/xfsprogs-5.6.0/repair/prefetch.c:601:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(bplist[i]->b_addr, pbuf, size);
data/xfsprogs-5.6.0/repair/prefetch.c:1123:18:  [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).
	pf_trace_file = fopen("/tmp/xfs_repair_prefetch.trace", "w");
data/xfsprogs-5.6.0/repair/prefetch.c:1136: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[200];
data/xfsprogs-5.6.0/repair/progress.c:321: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		msgbuf[DURATION_BUF_SIZE];
data/xfsprogs-5.6.0/repair/progress.c:412:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, _("%02d:%02d:%02d"), tmp->tm_hour, tmp->tm_min, tmp->tm_sec);
data/xfsprogs-5.6.0/repair/progress.c:426: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 temp[128];
data/xfsprogs-5.6.0/repair/progress.c:434:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(buf, _("%d week"), weeks);
data/xfsprogs-5.6.0/repair/progress.c:435:19:  [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.
			if (weeks > 1) strcat(buf, _("s"));
data/xfsprogs-5.6.0/repair/progress.c:444:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(temp, _("%d day"), days);
data/xfsprogs-5.6.0/repair/progress.c:445:18:  [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.
			if (days > 1) strcat(temp, _("s"));
data/xfsprogs-5.6.0/repair/progress.c:451:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
				strcat(buf, _(", "));
data/xfsprogs-5.6.0/repair/progress.c:460:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(temp, _("%d hour"), hours);
data/xfsprogs-5.6.0/repair/progress.c:461:19:  [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.
			if (hours > 1) strcat(temp, _("s"));
data/xfsprogs-5.6.0/repair/progress.c:468:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
				strcat(buf, _(", "));
data/xfsprogs-5.6.0/repair/progress.c:478:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(temp, _("%d minute"), minutes);
data/xfsprogs-5.6.0/repair/progress.c:479:21:  [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.
			if (minutes > 1) strcat(temp, _("s"));
data/xfsprogs-5.6.0/repair/progress.c:486:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
				strcat(buf, _(", "));
data/xfsprogs-5.6.0/repair/progress.c:493:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(temp, _("%d second"), seconds);
data/xfsprogs-5.6.0/repair/progress.c:494:20:  [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.
		if (seconds > 1) strcat(temp, _("s"));
data/xfsprogs-5.6.0/repair/progress.c:496:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(buf, _(", "));
data/xfsprogs-5.6.0/repair/progress.c:510: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	msgbuf[DURATION_BUF_SIZE];
data/xfsprogs-5.6.0/repair/scan.c:2482:4:  [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(&mp->m_sb, sb, sizeof(xfs_sb_t));
data/xfsprogs-5.6.0/repair/slab.c:183: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(p, item, slab->s_item_sz);
data/xfsprogs-5.6.0/repair/xfs_repair.c:103: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 *err_message[XR_BAD_ERR_CODE];
data/xfsprogs-5.6.0/rtcp/xfs_rtcp.c:38: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).
			extsize = atoi(optarg);
data/xfsprogs-5.6.0/rtcp/xfs_rtcp.c:106: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		tbuf[ PATH_MAX ];
data/xfsprogs-5.6.0/rtcp/xfs_rtcp.c:168:16:  [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 ( (tofd = open(tbuf, O_RDWR|O_CREAT|O_DIRECT, 0666)) < 0 ) {
data/xfsprogs-5.6.0/rtcp/xfs_rtcp.c:196:16:  [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 ( (tofd = open(tbuf, O_RDWR|O_DIRECT)) < 0 ) {
data/xfsprogs-5.6.0/rtcp/xfs_rtcp.c:236:17:  [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 ( (fromfd = open(source, O_RDONLY|O_DIRECT)) < 0 ) {
data/xfsprogs-5.6.0/rtcp/xfs_rtcp.c:259:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ( (fromfd = open(source, O_RDONLY )) < 0 ) {
data/xfsprogs-5.6.0/rtcp/xfs_rtcp.c:375:7:  [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).
	fd = open( path, O_RDONLY );
data/xfsprogs-5.6.0/scrub/common.c:108: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[DESCR_BUFSZ];
data/xfsprogs-5.6.0/scrub/common.c:166: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			logname[LOGNAME_BUFSZ];
data/xfsprogs-5.6.0/scrub/common.c:167: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[LOG_BUFSZ];
data/xfsprogs-5.6.0/scrub/common.c:329:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			x = sprintf(q, "\\x%02x", *p);
data/xfsprogs-5.6.0/scrub/descr.c:39:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char global_dsc_buf[DESCR_BUFSZ];
data/xfsprogs-5.6.0/scrub/disk.c:108:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char		cdb[VERIFY16_CMDLEN];
data/xfsprogs-5.6.0/scrub/disk.c:109:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char		sense[SENSE_BUF_LEN];
data/xfsprogs-5.6.0/scrub/disk.c:204:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	disk->d_fd = open(pathname, O_RDONLY | O_DIRECT | O_NOATIME);
data/xfsprogs-5.6.0/scrub/inodes.c:67:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char	errbuf[DESCR_BUFSZ];
data/xfsprogs-5.6.0/scrub/inodes.c:116: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			descr[DESCR_BUFSZ];
data/xfsprogs-5.6.0/scrub/inodes.c:177:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char	idescr[DESCR_BUFSZ];
data/xfsprogs-5.6.0/scrub/phase2.c:33: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				descr[DESCR_BUFSZ];
data/xfsprogs-5.6.0/scrub/phase3.c:50: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			descr[DESCR_BUFSZ];
data/xfsprogs-5.6.0/scrub/phase5.c:159: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				attrbuf[XFS_XATTR_LIST_MAX];
data/xfsprogs-5.6.0/scrub/phase5.c:160: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				keybuf[XATTR_NAME_MAX + 1];
data/xfsprogs-5.6.0/scrub/phase5.c:342: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				label[FSLABEL_MAX];
data/xfsprogs-5.6.0/scrub/phase6.c:277: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				descr[DESCR_BUFSZ];
data/xfsprogs-5.6.0/scrub/phase6.c:381: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[DESCR_BUFSZ];
data/xfsprogs-5.6.0/scrub/progress.c:67: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[81];
data/xfsprogs-5.6.0/scrub/read_verify.c:304: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(tmp, rv, sizeof(*tmp));
data/xfsprogs-5.6.0/scrub/spacemap.c:55: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(head->fmh_keys, keys, sizeof(struct fsmap) * 2);
data/xfsprogs-5.6.0/scrub/spacemap.c:120:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char		descr[DESCR_BUFSZ];
data/xfsprogs-5.6.0/scrub/spacemap.c:155:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char		descr[DESCR_BUFSZ];
data/xfsprogs-5.6.0/scrub/unicrash.c: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			name[0];
data/xfsprogs-5.6.0/scrub/unicrash.c:252: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(new_entry->name, name, namelen);
data/xfsprogs-5.6.0/scrub/vfs.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			newpath[PATH_MAX];
data/xfsprogs-5.6.0/scrub/vfs.c:133:11:  [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).
	dir_fd = open(sftd->path, O_RDONLY | O_NOATIME | O_NOFOLLOW | O_NOCTTY);
data/xfsprogs-5.6.0/scrub/xfs_scrub.c:296: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			phasebuf[DESCR_BUFSZ];
data/xfsprogs-5.6.0/scrub/xfs_scrub.c:428: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_phase = atoi(getenv("XFS_SCRUB_PHASE"));
data/xfsprogs-5.6.0/scrub/xfs_scrub.c:742: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(&ctx.fsinfo, fsp, sizeof(struct fs_path));
data/xfsprogs-5.6.0/spaceman/file.c:73: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(fs_path, fsp, sizeof(struct fs_path));
data/xfsprogs-5.6.0/spaceman/file.c:107: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(&file->xfd, xfd, sizeof(struct xfs_fd));
data/xfsprogs-5.6.0/spaceman/health.c:192: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			descr[256];
data/xfsprogs-5.6.0/spaceman/health.c:212: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			d[256];
data/xfsprogs-5.6.0/spaceman/health.c:269: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			descr[256];
data/xfsprogs-5.6.0/copy/xfs_copy.c:346:22:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
	while ((buf->data = memalign(data_align, data_size)) == NULL) {
data/xfsprogs-5.6.0/copy/xfs_copy.c:399:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((res = read(fd, buf->data, buf->length)) < 0)  {
data/xfsprogs-5.6.0/db/attrset.c:132:19:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
		value = (char *)memalign(getpagesize(), valuelen);
data/xfsprogs-5.6.0/db/attrset.c:149:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (libxfs_attr_set(ip, (unsigned char *)name, strlen(name),
data/xfsprogs-5.6.0/db/attrset.c:225:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (libxfs_attr_remove(ip, (unsigned char *)name, strlen(name), flags)){
data/xfsprogs-5.6.0/db/check.c:2045: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).
	len = (int)(strlen(oldpath) + strlen(parent) + 2);
data/xfsprogs-5.6.0/db/check.c:2045:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = (int)(strlen(oldpath) + strlen(parent) + 2);
data/xfsprogs-5.6.0/db/flist.c:388:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(a, s, l);
data/xfsprogs-5.6.0/db/hash.c:44:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	hashval = libxfs_da_hashname((unsigned char *)argv[1], (int)strlen(argv[1]));
data/xfsprogs-5.6.0/db/input.c:171: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).
		    (len = strlen(buf)) == 0) {
data/xfsprogs-5.6.0/db/metadump.c:1676: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).
		linklen = strlen(link);
data/xfsprogs-5.6.0/db/metadump.c:2701:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			       min(strlen(sb->sb_fname), sizeof(sb->sb_fname)));
data/xfsprogs-5.6.0/db/sb.c:505: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(label)) > sizeof(tsb.sb_fname)) {
data/xfsprogs-5.6.0/db/write.c:751:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	buf = convert_arg(argv[0], (int)((strlen(argv[0])+1)*8));
data/xfsprogs-5.6.0/estimate/xfs_estimate.c:186:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(dname, argv[optind], 40);
data/xfsprogs-5.6.0/estimate/xfs_estimate.c:207: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).
	dirsize+=PERDIRENTRY+strlen(path);
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:445:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(fd, buf, SMBUFSZ) == -1) {
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:454:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if ((strncmp(buf,fsname,strlen(fsname)) == 0)
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:455: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).
				    && buf[strlen(fsname)] == ' ') {
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:572:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (write(fd, buf, ret) < strlen(buf))
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:1217:23:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
	if (!(fbuf = (char *)memalign(dio.d_mem, blksz_dio))) {
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:1319:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ct = read(fd, fbuf, ct);
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:1453:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, fname, PATH_MAX);
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:1459:3:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
		strcpy(buf, ".");
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:1462: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(buf) + strlen (sbuf)) > PATH_MAX) {
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:1462:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((strlen(buf) + strlen (sbuf)) > PATH_MAX) {
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:1478:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, fname, PATH_MAX);
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:1486:3:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
		strcpy(buf, ".");
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:1678:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	mask = umask(0);
data/xfsprogs-5.6.0/fsr/xfs_fsr.c:1704:8:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	(void)umask(mask);
data/xfsprogs-5.6.0/io/bmap.c:303:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				foff_w = max(foff_w, strlen(rbuf));
data/xfsprogs-5.6.0/io/bmap.c:311:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				boff_w = max(boff_w, strlen(bbuf));
data/xfsprogs-5.6.0/io/bmap.c:321:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					aoff_w = max(aoff_w, strlen(abuf));
data/xfsprogs-5.6.0/io/bmap.c:324:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				foff_w = max(foff_w, strlen(rbuf));
data/xfsprogs-5.6.0/io/encrypt.c:328: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(hex) != 2 * bin_len)
data/xfsprogs-5.6.0/io/encrypt.c:429: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(str);
data/xfsprogs-5.6.0/io/encrypt.c:705:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		res = read(fd, buf, limit);
data/xfsprogs-5.6.0/io/fiemap.c:208:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		*foff_w = max(*foff_w, strlen(lbuf));
data/xfsprogs-5.6.0/io/fiemap.c:209:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		*boff_w = max(*boff_w, strlen(bbuf));
data/xfsprogs-5.6.0/io/fsmap.c:207: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).
		nr_w = max(nr_w, strlen(nbuf));
data/xfsprogs-5.6.0/io/fsmap.c:214: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).
		dev_w = max(dev_w, strlen(dbuf));
data/xfsprogs-5.6.0/io/fsmap.c:218:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		boff_w = max(boff_w, strlen(bbuf));
data/xfsprogs-5.6.0/io/fsmap.c:220: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).
			own_w = max(own_w, strlen(
data/xfsprogs-5.6.0/io/fsmap.c:225: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).
			own_w = max(own_w, strlen(obuf));
data/xfsprogs-5.6.0/io/fsmap.c:228:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			foff_w = max(foff_w, strlen(_("extent_map")));
data/xfsprogs-5.6.0/io/fsmap.c:235:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			foff_w = max(foff_w, strlen(rbuf));
data/xfsprogs-5.6.0/io/fsmap.c:246:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		aoff_w = max(aoff_w, strlen(abuf));
data/xfsprogs-5.6.0/io/label.c:57: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).
			if (strlen(optarg) > FSLABEL_MAX) {
data/xfsprogs-5.6.0/io/label.c:62:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(label, optarg, sizeof(label) - 1);
data/xfsprogs-5.6.0/io/pread.c:70:21:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
		iov[i].iov_base = memalign(pagesize, bsize);
data/xfsprogs-5.6.0/io/pread.c:101:15:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
		io_buffer = memalign(pagesize, bsize);
data/xfsprogs-5.6.0/io/readdir.c:102: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).
		*total += strlen(dirent->d_name) + sizeof(*dirent);
data/xfsprogs-5.6.0/libhandle/handle.c:110:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(fdhp->fspath, fspath, sizeof(fdhp->fspath));
data/xfsprogs-5.6.0/libhandle/handle.c:166:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(dirpath, path, MAXPATHLEN);
data/xfsprogs-5.6.0/libxcmd/input.c:86: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).
	p = line + strlen(line);
data/xfsprogs-5.6.0/libxcmd/input.c:218: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).
	for (i = 0; i < strlen(str); i++) {
data/xfsprogs-5.6.0/libxfs/rdwr.c:81:11:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
	if ((z = memalign(libxfs_device_alignment(), zsize)) == NULL) {
data/xfsprogs-5.6.0/libxfs/rdwr.c:363:16:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
		bp->b_addr = memalign(libxfs_device_alignment(), bytes);
data/xfsprogs-5.6.0/logprint/log_copy.c:32:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		r = read(fd, buf, sizeof(buf));
data/xfsprogs-5.6.0/logprint/log_dump.c:31:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		r = read(fd, buf, sizeof(buf));
data/xfsprogs-5.6.0/logprint/log_misc.c:807:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((ret = (int) read(fd, buf, read_len)) == -1) {
data/xfsprogs-5.6.0/logprint/log_misc.c:1216:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    if (read(fd, xhbuf, 512) == 0) {
data/xfsprogs-5.6.0/logprint/log_misc.c:1292:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, hbuf, 512) == 0) {
data/xfsprogs-5.6.0/logprint/log_misc.c:1412:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    if (read(fd, hbuf, 512) == 0) {
data/xfsprogs-5.6.0/logprint/logprint.c:71:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, buf, sizeof(buf)) != sizeof(buf)) {
data/xfsprogs-5.6.0/mkfs/proto.c:73:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, buf, size) < size) {
data/xfsprogs-5.6.0/mkfs/proto.c:297:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(fd, buf, size) < size) {
data/xfsprogs-5.6.0/mkfs/proto.c:440: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).
	xname.len = name ? strlen(name) : 0;
data/xfsprogs-5.6.0/mkfs/proto.c:529: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).
		len = (int)strlen(buf);
data/xfsprogs-5.6.0/mkfs/xfs_mkfs.c:1121:8:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
	buf = memalign(libxfs_device_alignment(), new_sb->sb_sectsize);
data/xfsprogs-5.6.0/mkfs/xfs_mkfs.c:3263:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		label_len = min(sizeof(sbp->sb_fname), strlen(cfg->label));
data/xfsprogs-5.6.0/mkfs/xfs_mkfs.c:3661: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).
			if (strlen(optarg) > sizeof(sbp->sb_fname))
data/xfsprogs-5.6.0/quota/edit.c:383:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(dev, buffer + 5, sizeof(dev) - 1);
data/xfsprogs-5.6.0/quota/edit.c:384: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).
			dev[strlen(dev) - 1] = '\0';
data/xfsprogs-5.6.0/quota/util.c:251:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(idc.name, pw->pw_name, NMAX);
data/xfsprogs-5.6.0/quota/util.c:266:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(idc.name, gr->gr_name, NMAX);
data/xfsprogs-5.6.0/quota/util.c:281:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(idc.name, pr->pr_name, NMAX);
data/xfsprogs-5.6.0/repair/incore.c:215:12:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
	rt_bmap = memalign(sizeof(uint64_t), rt_bmap_size);
data/xfsprogs-5.6.0/repair/incore_ino.c:619:32:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
		ptbl->pentries = (xfs_ino_t*)memalign(sizeof(xfs_ino_t),
data/xfsprogs-5.6.0/repair/incore_ino.c:666:20:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
	tmp = (xfs_ino_t*)memalign(sizeof(xfs_ino_t), (cnt + 1) * sizeof(xfs_ino_t));
data/xfsprogs-5.6.0/repair/phase1.c:26:15:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
	bp = (char *)memalign(libxfs_device_alignment(), size);
data/xfsprogs-5.6.0/repair/phase6.c:966: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).
	xname.len = strlen(ORPHANAGE);
data/xfsprogs-5.6.0/repair/prefetch.c:654:16:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
	void			*buf = memalign(libxfs_device_alignment(),
data/xfsprogs-5.6.0/repair/sb.c:110:19:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
	sb = (xfs_sb_t *)memalign(libxfs_device_alignment(), BSIZE);
data/xfsprogs-5.6.0/repair/sb.c:133:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (!done && (bsize = read(x.dfd, sb, BSIZE)) <= 0)  {
data/xfsprogs-5.6.0/repair/sb.c:531:8:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
	buf = memalign(libxfs_device_alignment(), size);
data/xfsprogs-5.6.0/repair/sb.c:565:8:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
	buf = memalign(libxfs_device_alignment(), size);
data/xfsprogs-5.6.0/repair/sb.c:585:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((rval = read(x.dfd, buf, size)) != size)  {
data/xfsprogs-5.6.0/rtcp/xfs_rtcp.c:115: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).
	sp = source + strlen(source);
data/xfsprogs-5.6.0/rtcp/xfs_rtcp.c:120: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).
	sp = target + strlen(target);
data/xfsprogs-5.6.0/rtcp/xfs_rtcp.c:319:9:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
	fbuf = memalign( dioattr.d_mem, iosz);
data/xfsprogs-5.6.0/rtcp/xfs_rtcp.c:325:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ( ( readct = read( fromfd, fbuf, iosz) ) != 0 ) {
data/xfsprogs-5.6.0/scrub/common.c:321:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	str = malloc(strlen(in) * 4);
data/xfsprogs-5.6.0/scrub/unicrash.c:244:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t			namelen = strlen(name);

ANALYSIS SUMMARY:

Hits = 753
Lines analyzed = 172423 in approximately 3.91 seconds (44059 lines/second)
Physical Source Lines of Code (SLOC) = 126601
Hits@level = [0] 1630 [1]  94 [2] 441 [3] 130 [4]  88 [5]   0
Hits@level+ = [0+] 2383 [1+] 753 [2+] 659 [3+] 218 [4+]  88 [5+]   0
Hits/KSLOC@level+ = [0+] 18.8229 [1+] 5.94782 [2+] 5.20533 [3+] 1.72195 [4+] 0.695097 [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.