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/gfarm-2.7.17+dfsg/bench/bwlat-syscache/bwlat-syscache.c
Examining data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c
Examining data/gfarm-2.7.17+dfsg/bench/fsstress/global.h
Examining data/gfarm-2.7.17+dfsg/bench/fsstress/xfscompat.h
Examining data/gfarm-2.7.17+dfsg/bench/fsysbench/fsysbench.c
Examining data/gfarm-2.7.17+dfsg/bench/gfcreate-test/gfcreate-test.c
Examining data/gfarm-2.7.17+dfsg/bench/gfiops/gfiops.c
Examining data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-autoreplica/gfperf-autoreplica-main.c
Examining data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-copy/gfperf-copy-gfarm2fs.c
Examining data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-copy/gfperf-copy-libgfarm.c
Examining data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-copy/gfperf-copy-main.c
Examining data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-copy/gfperf-copy.h
Examining data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-lib/create_file.c
Examining data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-lib/gfperf-lib.h
Examining data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-lib/gfperf-util.c
Examining data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-metadata/gfperf-metadata-gfarm2fs.c
Examining data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-metadata/gfperf-metadata-libgfarm.c
Examining data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-metadata/gfperf-metadata-main.c
Examining data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-metadata/gfperf-metadata.h
Examining data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-parallel-read/gfperf-parallel-read-main.c
Examining data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-parallel-write/gfperf-parallel-write-main.c
Examining data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-read/gfperf-read-main.c
Examining data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-replica/gfperf-replica-main.c
Examining data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-replica/gfperf-replica-test.c
Examining data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-replica/gfperf-replica.h
Examining data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-tree/gfperf-tree-main.c
Examining data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-write/gfperf-write-main.c
Examining data/gfarm-2.7.17+dfsg/bench/nconnect/nconnect.c
Examining data/gfarm-2.7.17+dfsg/bench/thput-fsstripe/thput-fsstripe.c
Examining data/gfarm-2.7.17+dfsg/bench/thput-fsys/thput-fsys.c
Examining data/gfarm-2.7.17+dfsg/bench/thput-gfpio/thput-gfpio.c
Examining data/gfarm-2.7.17+dfsg/bench/thput-pvfs/thput-pvfs.c
Examining data/gfarm-2.7.17+dfsg/gftool/addpath/addpath.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfchmod/gfchmod.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfchown/gfchown.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfcksum/gfcksum.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfdf/gfdf.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfdirpath/gfdirpath.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfdump/gfdump.c
Examining data/gfarm-2.7.17+dfsg/gftool/gferror/gferror.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfexport/gfexport.c
Examining data/gfarm-2.7.17+dfsg/gftool/gffindxmlattr/gffindxmlattr.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfgetfacl/gfgetfacl.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfgroup/gfgroup.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfhost/gfhost.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfhostgroup/gfhostgroup.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfjournal/gfjournal.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfkey/gfkey.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfln/gfln.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfls/gfls.c
Examining data/gfarm-2.7.17+dfsg/gftool/gflsof/gflsof.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfmdhost/gfmdhost.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfmkdir/gfmkdir.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfmv/gfmv.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfncopy/gfncopy.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfpath/gfpath.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfprep/gfarm_cmd.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfprep/gfarm_cmd.h
Examining data/gfarm-2.7.17+dfsg/gftool/gfprep/gfarm_dirtree.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfprep/gfarm_dirtree.h
Examining data/gfarm-2.7.17+dfsg/gftool/gfprep/gfarm_fifo.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfprep/gfarm_fifo.h
Examining data/gfarm-2.7.17+dfsg/gftool/gfprep/gfarm_parallel.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfprep/gfarm_parallel.h
Examining data/gfarm-2.7.17+dfsg/gftool/gfprep/gfarm_pfunc.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfprep/gfarm_pfunc.h
Examining data/gfarm-2.7.17+dfsg/gftool/gfprep/gfmsg.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfprep/gfmsg.h
Examining data/gfarm-2.7.17+dfsg/gftool/gfprep/gfprep.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfprep/gfprep.h
Examining data/gfarm-2.7.17+dfsg/gftool/gfprep/gfurl.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfprep/gfurl.h
Examining data/gfarm-2.7.17+dfsg/gftool/gfprep/gfurl_gfarm.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfprep/gfurl_hpss.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfprep/gfurl_local.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfpwd/gfpwd.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfquota/gfdirquota/gfdirquota.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfquota/gfedquota/gfedquota.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfquota/gfquota/gfquota.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfquota/gfquotacheck/gfquotacheck.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfreg/gfreg.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfreg/gfreg_simple.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfrep/gfarm_list.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfrep/gfarm_list.h
Examining data/gfarm-2.7.17+dfsg/gftool/gfrep/gfrep.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfrep/gfrep_simple.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfrepcheck/gfrepcheck.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfrm/gfrm.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfrm/gfrm_simple.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfrmdir/gfrmdir.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfsched/gfsched.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfsck/gfsck.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfsetdir/gfsetdir.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfsetfacl/gfsetfacl.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfspoolmd5/gfspoolmd5.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfstat/gfstat.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfstatus/gfstatus.c
Examining data/gfarm-2.7.17+dfsg/gftool/gftest/gftest.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfusage/gfusage.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfuser/gfuser.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfvoms-sync/gfvoms-update/gfvoms-update.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfwhere/gfwhere.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfwhoami/gfwhoami.c
Examining data/gfarm-2.7.17+dfsg/gftool/gfxattr/gfxattr.c
Examining data/gfarm-2.7.17+dfsg/include/gfarm/error.h
Examining data/gfarm-2.7.17+dfsg/include/gfarm/gfarm.h
Examining data/gfarm-2.7.17+dfsg/include/gfarm/gfarm_iostat.h
Examining data/gfarm-2.7.17+dfsg/include/gfarm/gfarm_msg_enums.h
Examining data/gfarm-2.7.17+dfsg/include/gfarm/gfarm_stringlist.h
Examining data/gfarm-2.7.17+dfsg/include/gfarm/gflog.h
Examining data/gfarm-2.7.17+dfsg/include/gfarm/gfs.h
Examining data/gfarm-2.7.17+dfsg/include/gfarm/gfs_glob.h
Examining data/gfarm-2.7.17+dfsg/include/gfarm/gfs_hook.h
Examining data/gfarm-2.7.17+dfsg/include/gfarm/group_info.h
Examining data/gfarm-2.7.17+dfsg/include/gfarm/host_info.h
Examining data/gfarm-2.7.17+dfsg/include/gfarm/user_info.h
Examining data/gfarm-2.7.17+dfsg/include/gfarm/gfarm_misc.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_client.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_client_gsi.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_common.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_common_gsi.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_config.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_gsi.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_server.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_server_gsi.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_server_uid.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_server_uid_gsi.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/config.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/config.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/config_client.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/config_openssl.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/config_openssl.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/config_server.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/conn_cache.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/conn_cache.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/conn_hash.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/conn_hash.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/context.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/context.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/crc32.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/crc32.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/filesystem.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/filesystem.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/fsngroup_info.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfarm_foreach.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfarm_foreach.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfarm_path.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfarm_path.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfj_client.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfm_client.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfm_client.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfm_conn_follow.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfm_proto.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfm_schedule.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfm_schedule.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfp_xdr.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfp_xdr.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfp_xdr_server.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfpath.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_acl.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_attrplus.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_attrplus.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_chmod.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_chown.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_client.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_client.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_dir.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_dir.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_dircache.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_dircache.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_dirplus.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_dirplusxattr.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_dirplusxattr.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_dirquota.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_dirquota.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_failover.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_file_list.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_io.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_io.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_link.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_misc.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_mkdir.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_pio.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_pio.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_pio_failover.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_pio_impl.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_pio_local.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_pio_remote.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_pio_section.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_profile.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_profile.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_proto.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_proto.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_quota.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_rdma.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_rdma.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_readlink.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_realpath.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_remove.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_rename.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_replica.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_replica_info.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_replicate.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_rmdir.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_stat.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_statfs.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_statfsnode.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_statsw.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_symlink.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_unlink.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_util.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_utimes.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_xattr.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/glob.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/host.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/hostspec.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/hostspec.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/humanize_number.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/humanize_number.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/import_help.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/io_fd.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/io_fd.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/io_gfsl.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/io_gfsl.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/iobuffer.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/iobuffer.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/iostat.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/iostat.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/liberror.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/liberror.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/lookup.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/lookup.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/metadb_common.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/metadb_common.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/metadb_server.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/metadb_server.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/param.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/param.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/patmatch.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/patmatch.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/quota_info.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/repattr.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/repattr.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/schedule.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/schedule.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/sockopt.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/sockopt.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/sockutil.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/sockutil.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/stringlist.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/timespec.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/timespec.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/url.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/xattr_info.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/host.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/auth.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/client.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/client2.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/gfarm_auth.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/gfarm_gsi.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/gfarm_secure_session.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/gfsl_config.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/gsi.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/misc.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/misc.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/scarg.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/scarg.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/scsub.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/server.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/server2.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/session.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/tcputil.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/tcputil.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/alloc.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/assert.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/assert.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/backtrace.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/bool.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/daemon.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/gfevent.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/gfevent.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/gflog_reduced.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/gfnetdb.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/gfnetdb.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/gfutil.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/hash.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/hash.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/hash_strptr.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/id_table.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/id_table.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/limit.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/logutil.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/lru_cache.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/lru_cache.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/msgdigest.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/msgdigest.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/nanosec.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/nanosec.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/privlock.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/proctitle.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/proctitle.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/queue.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/random.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/send_no_sigpipe.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/sleep.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/strarray.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/thrbarrier.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/thrbarrier.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/thrsubr.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/thrsubr.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/timer.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/timer.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/timeval.c
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/tree.h
Examining data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/utf8.c
Examining data/gfarm-2.7.17+dfsg/linux/gfskd/gfskd.c
Examining data/gfarm-2.7.17+dfsg/linux/gfskd/gfskd.h
Examining data/gfarm-2.7.17+dfsg/linux/gfskd/gfskd_proc.c
Examining data/gfarm-2.7.17+dfsg/linux/include/gfsk_if.h
Examining data/gfarm-2.7.17+dfsg/linux/include/ug_idmap.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/gfarm_stub.c
Examining data/gfarm-2.7.17+dfsg/linux/kernel/gfsk.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_ccib.c
Examining data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_ccib.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_ccutil.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_dev.c
Examining data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_devif.c
Examining data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_devif.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_dir.c
Examining data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_eventfd.c
Examining data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_fd.c
Examining data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_file.c
Examining data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_fs.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_genfile.c
Examining data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_genfile.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_gfarm.c
Examining data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_if.c
Examining data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_inode.c
Examining data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_ioapi.c
Examining data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_libgfarm.c
Examining data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_libgfarm.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_netdb.c
Examining data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_proc.c
Examining data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_proc.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_stack.c
Examining data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_stack.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_stdlib.c
Examining data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_super.c
Examining data/gfarm-2.7.17+dfsg/linux/kernel/ug_idmap.c
Examining data/gfarm-2.7.17+dfsg/linux/kernel/ug_proc.c
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/arpa/inet.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/assert.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/byteswap.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/ctype.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/errno.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/fcntl.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/grp.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/ifaddrs.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/inttypes.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/libgen.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/limits.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/math.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/net/if.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/netdb.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/netinet/in.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/netinet/tcp.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/nl_types.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/openssl/evp.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/poll.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/pthread.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/pwd.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/signal.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/stddef.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/stdio.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/stdlib.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/string.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/sys/epoll.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/sys/ioctl.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/sys/param.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/sys/poll.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/sys/resource.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/sys/select.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/sys/socket.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/sys/stat.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/sys/time.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/sys/types.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/sys/uio.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/sys/un.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/sys/wait.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/syslog.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/time.h
Examining data/gfarm-2.7.17+dfsg/linux/kernel/usr/unistd.h
Examining data/gfarm-2.7.17+dfsg/linux/ugidmapd/idmapd.c
Examining data/gfarm-2.7.17+dfsg/linux/ugidmapd/queue.h
Examining data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/empty_acl/empty_acl.c
Examining data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfarm_error_range_alloc/errmsg.c
Examining data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfarm_error_to_errno/all_errno.c
Examining data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfm_inode_or_name_op_test/gfm_inode_or_name_op_test.c
Examining data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfs_dir_test/gfs_dir_test.c
Examining data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfs_getxattr_cached/size0.c
Examining data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfs_pio_stat/gfs_stat_pio_stat_consistency.c
Examining data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfs_pio_test/gfs_pio_test.c
Examining data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfs_replicate_file_from_to_request/file_busy/file_busy.c
Examining data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfs_replicate_file_from_to_request/in_progress/in_progress.c
Examining data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfs_stat_cached/gfs_stat_cached_test.c
Examining data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfs_xattr/test_gfxattr.c
Examining data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfutil/utf8/utf8_test.c
Examining data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/benchmark.c
Examining data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/flock.c
Examining data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/mmap.c
Examining data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/readwrite.c
Examining data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/truncate.c
Examining data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c
Examining data/gfarm-2.7.17+dfsg/regress/manual/server/gfsd/fo_notify_test/fo_notify_test.c
Examining data/gfarm-2.7.17+dfsg/regress/server/gfmd/db_journal/db_journal_test.c
Examining data/gfarm-2.7.17+dfsg/regress/server/gfmd/db_journal/db_journal_test.h
Examining data/gfarm-2.7.17+dfsg/regress/server/gfmd/db_journal/empty_ops.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/abstract_host.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/abstract_host.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/acl.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/acl.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/back_channel.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/back_channel.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/callout.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/callout.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/db_access.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/db_common.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/db_common.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/db_journal.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/db_journal_apply.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/db_journal_apply.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/db_none.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/db_ops.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/dead_file_copy.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/dead_file_copy.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/dir.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/dir.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/dirset.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/dirset.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/failover_notify.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/file_copy.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/file_copy.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/fs.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/fs.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/fsngroup.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/fsngroup.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/gfmd.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/gfmd.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/gfmd_channel.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/gfmd_channel.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/group.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/group.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/host.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/host.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/inode.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/inode.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/internal_host_info.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/internal_host_info.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/inum_string_list.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/inum_string_list.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/job.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/job.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/journal_file.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/journal_file.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/mdcluster.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/mdcluster.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/mdhost.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/mdhost.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/peer.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/peer.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/process.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/process.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/protocol_state.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/quota.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/quota.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/quota_dir.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/quota_dir.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/replica_check.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/replica_check.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/rpcsubr.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/rpcsubr.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/subr.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/subr.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/thrpool.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/thrpool.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/uint64_map.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/uint64_map.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/user.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/user.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/watcher.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/watcher.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/xattr.c
Examining data/gfarm-2.7.17+dfsg/server/gfmd/xattr.h
Examining data/gfarm-2.7.17+dfsg/server/gfmd/db_journal.c
Examining data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c
Examining data/gfarm-2.7.17+dfsg/server/gfsd/gfsd_subr.h
Examining data/gfarm-2.7.17+dfsg/server/gfsd/loadavg.c
Examining data/gfarm-2.7.17+dfsg/server/gfsd/spck.c
Examining data/gfarm-2.7.17+dfsg/server/gfsd/statfs.c
Examining data/gfarm-2.7.17+dfsg/server/gfsd/write_verify.c
Examining data/gfarm-2.7.17+dfsg/server/gfsd/write_verify.h
Examining data/gfarm-2.7.17+dfsg/snmptool/glogger3/expand_node_name.c
Examining data/gfarm-2.7.17+dfsg/snmptool/glogger3/expand_node_name.h
Examining data/gfarm-2.7.17+dfsg/snmptool/glogger3/glogdump.c
Examining data/gfarm-2.7.17+dfsg/snmptool/glogger3/glogger.c
Examining data/gfarm-2.7.17+dfsg/snmptool/glogger3/glogger.h
Examining data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c
Examining data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c
Examining data/gfarm-2.7.17+dfsg/snmptool/glogger3/set_options.c
Examining data/gfarm-2.7.17+dfsg/snmptool/glogger3/snmpasync.c
Examining data/gfarm-2.7.17+dfsg/snmptool/glogger3/write_to_files.c
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/cmd/main.cpp
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/BlockingContainer.h
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/BoundedBlockingQueue.h
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/ChunkedBuffer.h
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/CircularBuffer.h
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/CommandLineParameters.h
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/Completion.h
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/Completions.h
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/IOHandle.h
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/Mutex.h
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/NTimer.h
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/NanoSecond.h
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/NanoTimer.h
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/PeriodicAlarm.h
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/Process.h
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/ProcessJanitor.h
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/ScopedLock.h
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/SignalThread.h
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/SimpleFileParser.h
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/Statistics.h
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/SynchronizedList.h
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/SynchronizedMap.h
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/Thread.h
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/UTimer.h
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/WaitCondition.h
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/libnata.h
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/nata_includes.h
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/nata_logger.h
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/nata_macros.h
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/nata_perror.h
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/nata_rcsid.h
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/nata_safe_syscall.h
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/nata_sha1.h
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/nata_types.h
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/nata_uid.h
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/nata_util.h
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/nata_win32api.h
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/NanoSecondStatics.cpp
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/ProcessJanitor.cpp
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/SimpleFileParser.cpp
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/ThreadStatics.cpp
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_logger.cpp
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_safe_syscall.cpp
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_sha1.cpp
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_uid.cpp
Examining data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_util.cpp

FINAL RESULTS:

data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1115:9:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	rval = readlink(name->path, lbuf, lbufsiz);
data/gfarm-2.7.17+dfsg/bench/fsysbench/fsysbench.c:484:7:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		if (chmod(name, 0400) != 0)
data/gfarm-2.7.17+dfsg/bench/fsysbench/fsysbench.c:522:7:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		if (chmod(name, 0600) != 0)
data/gfarm-2.7.17+dfsg/bench/fsysbench/fsysbench.c:621:6:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	e = chmod(name, mode);
data/gfarm-2.7.17+dfsg/bench/fsysbench/fsysbench.c:635:6:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	if (chmod(name, 0400) != 0) return (-1);
data/gfarm-2.7.17+dfsg/bench/fsysbench/fsysbench.c:642:6:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	if (chmod(name, 0400) != 0) return (-1);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-metadata/gfperf-metadata-gfarm2fs.c:186:6:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	e = chmod(names->names[0], CHMOD_MODE);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-metadata/gfperf-metadata-gfarm2fs.c:195:7:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		e = chmod(names->names[i], CHMOD_MODE);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-metadata/gfperf-metadata-gfarm2fs.c:358:6:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	e = readlink(tmp->names[0], buf, sizeof(buf));
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-metadata/gfperf-metadata-gfarm2fs.c:367:7:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
		e = readlink(tmp->names[i], buf, sizeof(buf));
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfurl.c:652:18:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	return (u->func.chmod(u->epath, mode));
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfurl.c:676:18:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	return (u->func.readlink(u->epath, targetp));
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfurl.h:17:18:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	gfarm_error_t (*chmod)(const char *, int);
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfurl.h:21:18:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	gfarm_error_t (*readlink)(const char *, char **);
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfurl_local.c:85:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	retv = chmod(path, (mode_t)mode);
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfurl_local.c:134:8:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	len = readlink(path, buf, bufsize - 1);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_common.c:271:7:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		if (chmod(keyfilename, 0600) == -1) {
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:6763:10:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		    && chmod(sock_dir, LOCAL_SOCKDIR_MODE) != 0) {
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:6769:6:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
	if (chown(sock_dir, gfsd_uid, -1) == -1)
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:6792:6:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
	if (chown(sock_name, gfsd_uid, -1) == -1)
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:6796:6:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	if (chmod(sock_name, LOCAL_SOCKET_MODE) == -1)
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:7230:14:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
		} else if (chown(iostat_dirbuf, gfsd_uid, -1)) {
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:490:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf(cmd,"rm -rf %s/*",dirname);
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:491:4:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	  system(cmd);
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:529: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(&name->path[name->len], str);
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1213: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(buf, name->path);
data/gfarm-2.7.17+dfsg/bench/fsysbench/fsysbench.c:653:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(newname, "%s_rename", name);
data/gfarm-2.7.17+dfsg/bench/fsysbench/fsysbench.c:707:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(newname, "%s_rename", name);
data/gfarm-2.7.17+dfsg/bench/fsysbench/fsysbench.c:732:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(dirname, "%d%s", i, DIR_SUFFIX);
data/gfarm-2.7.17+dfsg/bench/fsysbench/fsysbench.c:736:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(filename, "%d%s", j, FILE_SUFFIX);
data/gfarm-2.7.17+dfsg/bench/fsysbench/fsysbench.c:812:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(name, "%d%s", i, DIR_SUFFIX);
data/gfarm-2.7.17+dfsg/bench/fsysbench/fsysbench.c:833:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(name, "%d%s", i, DIR_SUFFIX);
data/gfarm-2.7.17+dfsg/bench/gfcreate-test/gfcreate-test.c:38:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf(__VA_ARGS__);			   \
data/gfarm-2.7.17+dfsg/bench/gfiops/gfiops.c:87:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, format, ap);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-lib/gfperf-util.c:25:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	size = vsnprintf(NULL, 0, fmt, ap);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-lib/gfperf-util.c:33:8:  [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(bufp, size+1, fmt, ap);
data/gfarm-2.7.17+dfsg/bench/nconnect/nconnect.c:770:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buffer, "%s_ADDR=%s", prefix,
data/gfarm-2.7.17+dfsg/bench/nconnect/nconnect.c:773:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buffer, "%s_PORT=%d", prefix,
data/gfarm-2.7.17+dfsg/bench/nconnect/nconnect.c:779:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(buffer, "%s_NAME=%s", prefix, hp->h_name);
data/gfarm-2.7.17+dfsg/bench/nconnect/nconnect.c:835:3:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execvp(argv[0], argv);
data/gfarm-2.7.17+dfsg/bench/thput-pvfs/thput-pvfs.c:372:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(bfile1, "%s/%s1.%s", PVFS_MOUNT, file_prefix, _hname);
data/gfarm-2.7.17+dfsg/bench/thput-pvfs/thput-pvfs.c:373:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(bfile2, "%s/%s2.%s", PVFS_MOUNT, file_prefix, _hname);
data/gfarm-2.7.17+dfsg/gftool/gfdf/gfdf.c:110:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr,
data/gfarm-2.7.17+dfsg/gftool/gfdf/gfdf.c:146:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(formatter->summary_title_format,
data/gfarm-2.7.17+dfsg/gftool/gfdf/gfdf.c:148:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(formatter->summary_data_format,
data/gfarm-2.7.17+dfsg/gftool/gfdf/gfdf.c:492:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(formatter->nodes_with_inode_title_format,
data/gfarm-2.7.17+dfsg/gftool/gfdf/gfdf.c:516:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf(formatter->nodes_with_inode_data_format,
data/gfarm-2.7.17+dfsg/gftool/gfdf/gfdf.c:551:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf(formatter->nodes_with_inode_data_format,
data/gfarm-2.7.17+dfsg/gftool/gfdf/gfdf.c:585:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(formatter->nodes_title_format,
data/gfarm-2.7.17+dfsg/gftool/gfdf/gfdf.c:595:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf(formatter->nodes_data_format,
data/gfarm-2.7.17+dfsg/gftool/gfdf/gfdf.c:612:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf(formatter->nodes_data_format,
data/gfarm-2.7.17+dfsg/gftool/gfdump/gfdump.c:40:2:  [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(f, " %" PR_FILE_OFFSET, info->filesize);
data/gfarm-2.7.17+dfsg/gftool/gfjournal/gfjournal.c:207:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(";%s=%" GFARM_PRId64, name, t);
data/gfarm-2.7.17+dfsg/gftool/gfjournal/gfjournal.c:213:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf("ino=%" GFARM_PRId64, st->st_ino);
data/gfarm-2.7.17+dfsg/gftool/gfjournal/gfjournal.c:229:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(
data/gfarm-2.7.17+dfsg/gftool/gfjournal/gfjournal.c:251:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(
data/gfarm-2.7.17+dfsg/gftool/gfjournal/gfjournal.c:358:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf("ino=%" GFARM_PRId64, m->inum);
data/gfarm-2.7.17+dfsg/gftool/gfjournal/gfjournal.c:365:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf("ino=%" GFARM_PRId64, m->inum);
data/gfarm-2.7.17+dfsg/gftool/gfjournal/gfjournal.c:373:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf("ino=%" GFARM_PRId64, m->inum);
data/gfarm-2.7.17+dfsg/gftool/gfjournal/gfjournal.c:382:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf("ino=%" GFARM_PRId64, m->inum);
data/gfarm-2.7.17+dfsg/gftool/gfjournal/gfjournal.c:390:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf("ino=%" GFARM_PRId64, m->inum);
data/gfarm-2.7.17+dfsg/gftool/gfjournal/gfjournal.c:400:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf("ino=%" GFARM_PRId64, m->inum);
data/gfarm-2.7.17+dfsg/gftool/gfjournal/gfjournal.c:406:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf("ino=%" GFARM_PRId64, m->inum);
data/gfarm-2.7.17+dfsg/gftool/gfjournal/gfjournal.c:414:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf("ino=%" GFARM_PRId64, m->inum);
data/gfarm-2.7.17+dfsg/gftool/gfjournal/gfjournal.c:423:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf("ino=%" GFARM_PRId64, m->dir_inum);
data/gfarm-2.7.17+dfsg/gftool/gfjournal/gfjournal.c:432:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf("ino=%" GFARM_PRId64, m->inum);
data/gfarm-2.7.17+dfsg/gftool/gfjournal/gfjournal.c:442:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf("ino=%" GFARM_PRId64, m->inum);
data/gfarm-2.7.17+dfsg/gftool/gfls/gfls.c:174:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(namep, files[i]);
data/gfarm-2.7.17+dfsg/gftool/gfls/gfls.c:473:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path, "%s%s", prefix, dirname);
data/gfarm-2.7.17+dfsg/gftool/gfmv/gfmv.c:39: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(s + a->dstdirlen, &src[a->srcdirlen]);
data/gfarm-2.7.17+dfsg/gftool/gfmv/gfmv.c:400:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(path, "%s%.*s",
data/gfarm-2.7.17+dfsg/gftool/gfmv/gfmv.c:415:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(path, "%s/%.*s",
data/gfarm-2.7.17+dfsg/gftool/gfncopy/gfncopy.c:68:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, format, ap);
data/gfarm-2.7.17+dfsg/gftool/gfncopy/gfncopy.c:82:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, format, ap);
data/gfarm-2.7.17+dfsg/gftool/gfncopy/gfncopy.c:209: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(url2, root_url);
data/gfarm-2.7.17+dfsg/gftool/gfncopy/gfncopy.c:210: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(url2, path);
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfarm_cmd.c:55:3:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execvp(cmd_args[0], cmd_args);
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfarm_parallel.c:70:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, format, ap);
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfmsg.c:24: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(out, format, ap);
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfurl.c:52:7:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		n = vsnprintf(p, size, format, aq);
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfurl.c:210: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(rv, p);
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfurl.c:213: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(rv, base);
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfurl.c:281: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(url, GFURL_LOCAL_PREFIX);
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfurl.c:283: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(url, p);
data/gfarm-2.7.17+dfsg/gftool/gfreg/gfreg.c:141:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(target_url, "%s/%s", gfarm_url, base_name);
data/gfarm-2.7.17+dfsg/gftool/gfreg/gfreg.c:143:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(target_url, "%s%s", gfarm_url, base_name);
data/gfarm-2.7.17+dfsg/gftool/gfreg/gfreg.c:353:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(p, strcmp(cwd, "") ? "%s/%s" : "%s%s", cwd, path);
data/gfarm-2.7.17+dfsg/gftool/gfsck/gfsck.c:204:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(gfarm_url, "%s", file);
data/gfarm-2.7.17+dfsg/gftool/gfsck/gfsck.c:206:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(gfarm_url, "%s%s", gfarm_dir, file);
data/gfarm-2.7.17+dfsg/gftool/gfsck/gfsck.c:208:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(gfarm_url, "%s/%s", gfarm_dir, file);
data/gfarm-2.7.17+dfsg/gftool/gfspoolmd5/gfspoolmd5.c:125:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(dir1, dir);
data/gfarm-2.7.17+dfsg/gftool/gfspoolmd5/gfspoolmd5.c:128: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(dir1, dp->d_name);
data/gfarm-2.7.17+dfsg/gftool/gfusage/gfusage.c:130:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(header_format, head_user, head_space, head_num,
data/gfarm-2.7.17+dfsg/gftool/gfusage/gfusage.c:137:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(header_format, head_group, head_space, head_num,
data/gfarm-2.7.17+dfsg/gftool/gfvoms-sync/gfvoms-update/gfvoms-update.c:66:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(vo, "/%s", (arg));\
data/gfarm-2.7.17+dfsg/gftool/gfvoms-sync/gfvoms-update/gfvoms-update.c:394:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(ret, "%s:%s%s", vomsid, vo, group);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_common.c:214:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(keyfilename, home);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_common.c:215: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(keyfilename, keyfile_basename);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_server.c:530:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(aux, "%s@%s", global_username, hostname);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_server_gsi.c:255:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(aux, "%s@%s", global_username, hostname);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/config.c:1329:3:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execvp(argv[0], argv);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/config_client.c:67:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(rc, "%s/%s", home, gfarm_client_rc);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfarm_foreach.c:62:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(path, "%s%s%s", file, slash, d);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfarm_path.c:63: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(p, base);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_acl.c:615:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(buf + nowlen, src);  /* with '\0' */ \
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_client.c:345:12:  [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.
	socklen = snprintf(peer_un.sun_path, sizeof(peer_un.sun_path),
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_dir.c:64:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(gfarm_current_working_directory, "/%s", canonic_dir);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_dir.c:92:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(env, "%s%s%s",
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_dir.c:159:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(cwd, path);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_dircache.c:827:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(path, "%s%s", dir->path, ep->d_name);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_dircache.c:935:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(p, "%s/", path);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_dircache.c:939:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(p, path);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_profile.c:90:11:  [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.
			size = snprintf(value, *sizep, format, *(double *)v);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_profile.c:93:11:  [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.
			size = snprintf(value, *sizep, format,
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_realpath.c:107:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(b, "%s//%s:%d%s", GFARM_URL_PREFIX,
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_xattr.c:845:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					sprintf(ctxp->workpath, "%s%s",
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_xattr.c:848:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					sprintf(ctxp->workpath, "%s/%s",
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/glob.c:211:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(path_tail, entry->d_name);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/glob.c:278:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(p + 1 + len, pattern);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/hostspec.c:69: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(hsp->u.name, name);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/lookup.c:441: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(p, link);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/lookup.c:445:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(p, rest);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/metadb_common.c:302: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(user, s->st_user);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/metadb_common.c:303: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(group, s->st_group);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/auth.c:220:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path, "%s/%s", dir, file);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/gsi.c:229:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(nameString, "%s@%s", service, hostname);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/gsi.c:1086: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(env + sizeof(env_name) - 1, filename);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/gsi.c:1106:30:  [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.
    exportedCred->filename = access(filename, R_OK) == 0 ? filename : NULL;
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/id_table.c:663:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		if (sscanf(buffer, "%s", command) != 1)
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/logutil.c:160: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.
	int s = snprintf(bp, (endp) - (bp), __VA_ARGS__); \
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/logutil.c:206: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(bp, endp - bp, format, ap);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/logutil.c:359: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, catmsg != NULL ? catmsg : format, ap);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/logutil.c:614: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, catmsg != NULL ? catmsg : format, ap);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/proctitle.c:73:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	(void)vsnprintf(buf, sizeof buf, fmt, ap);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/proctitle.c:133:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		(void)vsnprintf(buf + len, sizeof buf - len, fmt, ap);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/proctitle.c:164:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		(void)vsnprintf(buf + len, sizeof buf - len, fmt, ap);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/proctitle.c:211:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		(void)vsnprintf(buf + len, sizeof buf - len, fmt, ap);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/proctitle.c:290:10:  [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.
		len2 = vsnprintf(proctitle_argv_environ_space + len,
data/gfarm-2.7.17+dfsg/linux/gfskd/gfskd.c:104: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(rpl->r_hostname,
data/gfarm-2.7.17+dfsg/linux/gfskd/gfskd.c:389: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(mdatap->m_host,
data/gfarm-2.7.17+dfsg/linux/gfskd/gfskd.c:410:3:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execl("/bin/mount", "/bin/mount", "--no-canonicalize", "-i",
data/gfarm-2.7.17+dfsg/linux/gfskd/gfskd.c:658: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(cp, name);
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_if.c:117: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(inarg.r_hostname, hostname);
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_if.c:120:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(inarg.r_source_ip, source_ip);
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_if.c:121: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(inarg.r_global, user);
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_if.c:174: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(inarg->r_hostname, hostname);
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_if.c:178:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(inarg->r_source_ip, source_ip);
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_if.c:179: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(inarg->r_global, user);
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_netdb.c:76:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(data->buf, *alias);
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_netdb.c:122:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(ep, alias[0]);
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_netdb.c:217:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(bp, alias[i]);
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_netdb.c:304:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(buf, name);
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_netdb.c:349:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(buf, name);
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_proc.c:96:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		ret = snprintf(kbuf, size, var->fmt, *(int *)var->addr);
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_proc.c:99:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		ret = snprintf(kbuf, size, var->fmt, *(long *)var->addr);
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_proc.c:102:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		ret = snprintf(kbuf, size, var->fmt, var->addr);
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_proc.c:139:8:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
	ret = sscanf(kbuf, var->fmt, var->addr);
data/gfarm-2.7.17+dfsg/linux/kernel/ug_idmap.c:125:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(buf, ent->alias[i]);
data/gfarm-2.7.17+dfsg/linux/kernel/ug_idmap.c:413: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(key.name, name);
data/gfarm-2.7.17+dfsg/linux/kernel/usr/syslog.h:14:6:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
void syslog(int priority, const char *format, ...);
data/gfarm-2.7.17+dfsg/linux/ugidmapd/idmapd.c:275:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(im->im_name, nobodyuser);
data/gfarm-2.7.17+dfsg/linux/ugidmapd/idmapd.c:277:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(im->im_name, pwd.pw_name);
data/gfarm-2.7.17+dfsg/linux/ugidmapd/idmapd.c:285:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(im->im_name, nobodygroup);
data/gfarm-2.7.17+dfsg/linux/ugidmapd/idmapd.c:287:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(im->im_name, grp.gr_name);
data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfm_inode_or_name_op_test/gfm_inode_or_name_op_test.c:201: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(c->f1.name, name);
data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfm_inode_or_name_op_test/gfm_inode_or_name_op_test.c:254: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(c->f1.name, sname);
data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfm_inode_or_name_op_test/gfm_inode_or_name_op_test.c:255: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(c->f2.name, dname);
data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfm_inode_or_name_op_test/gfm_inode_or_name_op_test.c:289: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(c->f2.name, dname);
data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfs_stat_cached/gfs_stat_cached_test.c:37:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(cmd, "gfreg %s %s", opt_local_filepath, opt_gfarm_filepath);
data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfs_stat_cached/gfs_stat_cached_test.c:38:7:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	rs = system(cmd);
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/benchmark.c:74:3:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		system(command);
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/readwrite.c:347: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(filedata, writedata);
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/readwrite.c:348: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(filedata + writelen, writedata2);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:46:2:  [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/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:116:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	r = system("./gfmd-failover.sh");
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:185:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	r = system(cmd);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2116:12:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	wstatus = system(cmd);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2214:12:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	wstatus = system("./failover-loop-end.sh");
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2260:12:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	wstatus = system(cmd);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2358:12:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	wstatus = system("./failover-loop-end.sh");
data/gfarm-2.7.17+dfsg/regress/server/gfmd/db_journal/db_journal_test.c:3606:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(msg, "%s:wpos", ai->name);
data/gfarm-2.7.17+dfsg/regress/server/gfmd/db_journal/db_journal_test.h:26:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(assertbuf, "%s : expected %d but %d", \
data/gfarm-2.7.17+dfsg/regress/server/gfmd/db_journal/db_journal_test.h:35:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf(assertbuf, "%s : expected " \
data/gfarm-2.7.17+dfsg/regress/server/gfmd/db_journal/db_journal_test.h:45:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(assertbuf, "%s : expected %s but %s", \
data/gfarm-2.7.17+dfsg/regress/server/gfmd/db_journal/db_journal_test.h:54:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(assertbuf, "%s : expected %lld.%d but %lld.%d", \
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:545: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(r->hostname, hi->hostname);
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:550: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(r->architecture, hi->architecture);
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:702: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(r->username, ui->username);
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:703: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(r->realname, ui->realname);
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:704: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(r->homedir, ui->homedir);
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:705: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(r->gsi_dn, ui->gsi_dn);
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:811: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(r->groupname, gi->groupname);
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:814:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(r->usernames[i], gi->usernames[i]);
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:880:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(arg->add_users[i], add_users[i]);
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:882:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(arg->del_users[i], del_users[i]);
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:953: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(r->st_user, st->st_user);
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:954: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(r->st_group, st->st_group);
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:1090: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(arg->string, str);
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:1207: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(arg->type, type);
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:1303: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(arg->hostname, hostname);
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:1392: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(arg->hostname, hostname);
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:1560: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(arg->source_path, source_path);
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:1633:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(arg->attrname, attrname);
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:1818: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(arg->name, name);
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:1876: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(arg->name, name);
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:1957: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(r->username, username);
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:1958: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(r->dirsetname, dirsetname);
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:2123: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(r->name, ms->name);
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:2125:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(r->clustername, ms->clustername);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1208:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(dn, gfarm_ldap_host_info_ops.dn_template,
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1415:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(dn, gfarm_ldap_user_info_ops.dn_template,
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1578:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(dn, gfarm_ldap_group_info_ops.dn_template,
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1725:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(dn, gfarm_ldap_gfs_stat_ops.dn_template,
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1802:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(ino_string, "%" GFARM_PRId64, info->st_ino);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1803:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(igen_string, "%" GFARM_PRId64, info->st_gen);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1805:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(nlink_string, "%" GFARM_PRId64, info->st_nlink);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1806:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(size_string, "%" GFARM_PRId64, info->st_size);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1807:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(atime_sec_string, "%" GFARM_PRId64, info->st_atimespec.tv_sec);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1809:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(mtime_sec_string, "%" GFARM_PRId64, info->st_mtimespec.tv_sec);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1811:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(ctime_sec_string, "%" GFARM_PRId64, info->st_ctimespec.tv_sec);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1899:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(ino_string, "%" GFARM_PRId64, arg->inum);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1900:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(uint64_string, "%" GFARM_PRId64, arg->uint64);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1931:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(ino_string, "%" GFARM_PRId64, arg->inum);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1965:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(ino_string, "%" GFARM_PRId64, arg->inum);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1966:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(sec_string, "%" GFARM_PRId64, arg->time.tv_sec);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2024:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(ino_string, "%" GFARM_PRId64, arg->inum);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2252:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(dn, gfarm_ldap_db_filecopy_ops.dn_template,
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2290:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(ino_string, "%" GFARM_PRId64, info->inum);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2359:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(dn, gfarm_ldap_db_filecopy_ops.dn_template,
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2417:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(dn, gfarm_ldap_db_deadfilecopy_ops.dn_template,
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2458:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(ino_string, "%" GFARM_PRId64, info->inum);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2459:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(igen_string, "%" GFARM_PRId64, info->igen);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2621:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf(dn, gfarm_ldap_db_direntry_ops.dn_template,
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2677:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(ino_string, "%" GFARM_PRId64, info->dir_inum);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2678:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(entry_ino_string, "%" GFARM_PRId64, info->entry_inum);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2903:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(dn, gfarm_ldap_xattr_info_ops.dn_template,
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2982:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(ino_string, "%" GFARM_PRId64, arg->inum);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:3068:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(query_type,
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:184:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			p += sprintf(p, "%s='", varnames[i]);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:196:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		p += sprintf(p, "%s", others);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2191:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(inumber, "%" GFARM_PRId64, info->st_ino);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2193:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(igen, "%" GFARM_PRId64, info->st_gen);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2195:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(nlink, "%" GFARM_PRId64, info->st_nlink);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2197:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(size, "%" GFARM_PRId64, info->st_size);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2203:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(atimesec, "%" GFARM_PRId64, info->st_atimespec.tv_sec);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2207:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(mtimesec, "%" GFARM_PRId64, info->st_mtimespec.tv_sec);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2211:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(ctimesec, "%" GFARM_PRId64, info->st_ctimespec.tv_sec);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2270:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(inumber, "%" GFARM_PRId64, arg->inum);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2272:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(uint64, "%" GFARM_PRId64, arg->uint64);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2300:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(inumber, "%" GFARM_PRId64, arg->inum);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2329:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(inumber, "%" GFARM_PRId64, arg->inum);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2359:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(inumber, "%" GFARM_PRId64, arg->inum);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2361:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(sec, "%" GFARM_PRId64, arg->time.tv_sec);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2523:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(inumber, "%" GFARM_PRId64, arg->inum);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2550:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(inumber, "%" GFARM_PRId64, arg->inum);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2647:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(inumber, "%" GFARM_PRId64, arg->inum);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2763:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(inumber, "%" GFARM_PRId64, arg->inum);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2765:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(igen, "%" GFARM_PRId64, arg->igen);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2887:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(dir_inumber, "%" GFARM_PRId64, arg->dir_inum);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2890:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(entry_inumber, "%" GFARM_PRId64, arg->entry_inum);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2915:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(dir_inumber, "%" GFARM_PRId64, arg->dir_inum);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2982:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(inumber, "%" GFARM_PRId64, arg->inum);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3069:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(inumber, "%" GFARM_PRId64, arg->inum);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3126:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(inumber, "%" GFARM_PRId64, arg->inum);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3182:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(inumber, "%" GFARM_PRId64, arg->inum);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3227:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(inumber, "%" GFARM_PRId64, arg->inum);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3308:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(inumber, "%" GFARM_PRId64, arg->inum);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3430:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(inumber, "%" GFARM_PRId64, arg->inum);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3490:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(grace_period, "%" GFARM_PRId64, q->grace_period);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3491:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(space, "%" GFARM_PRId64, q->space);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3492:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(space_exceed, "%" GFARM_PRId64, q->space_exceed);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3493:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(space_soft, "%" GFARM_PRId64, q->space_soft);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3494:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(space_hard, "%" GFARM_PRId64, q->space_hard);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3495:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(num, "%" GFARM_PRId64, q->num);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3496:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(num_exceed, "%" GFARM_PRId64, q->num_exceed);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3497:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(num_soft, "%" GFARM_PRId64, q->num_soft);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3498:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(num_hard, "%" GFARM_PRId64, q->num_hard);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3499:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(phy_space, "%" GFARM_PRId64, q->phy_space);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3500:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(phy_space_exceed, "%" GFARM_PRId64, q->phy_space_exceed);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3501:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(phy_space_soft, "%" GFARM_PRId64, q->phy_space_soft);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3502:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(phy_space_hard, "%" GFARM_PRId64, q->phy_space_hard);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3503:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(phy_num, "%" GFARM_PRId64, q->phy_num);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3504:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(phy_num_exceed, "%" GFARM_PRId64, q->phy_num_exceed);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3505:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(phy_num_soft, "%" GFARM_PRId64, q->phy_num_soft);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3506:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(phy_num_hard, "%" GFARM_PRId64, q->phy_num_hard);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3709:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(grace_period, "%" GFARM_PRId64, arg->q.limit.grace_period);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3710:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(space, "%" GFARM_PRId64, arg->q.usage.space);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3711:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(space_exceed, "%" GFARM_PRId64, arg->q.exceed.space_time);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3712:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(space_soft, "%" GFARM_PRId64, arg->q.limit.soft.space);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3713:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(space_hard, "%" GFARM_PRId64, arg->q.limit.hard.space);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3714:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(num, "%" GFARM_PRId64, arg->q.usage.num);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3715:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(num_exceed, "%" GFARM_PRId64, arg->q.exceed.num_time);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3716:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(num_soft, "%" GFARM_PRId64, arg->q.limit.soft.num);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3717:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(num_hard, "%" GFARM_PRId64, arg->q.limit.hard.num);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3718:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(phy_space, "%" GFARM_PRId64, arg->q.usage.phy_space);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3719:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(phy_space_exceed, "%" GFARM_PRId64,
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3721:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(phy_space_soft, "%" GFARM_PRId64, arg->q.limit.soft.phy_space);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3722:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(phy_space_hard, "%" GFARM_PRId64, arg->q.limit.hard.phy_space);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3723:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(phy_num, "%" GFARM_PRId64, arg->q.usage.phy_num);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3724:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(phy_num_exceed, "%" GFARM_PRId64, arg->q.exceed.phy_num_time);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3725:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(phy_num_soft, "%" GFARM_PRId64, arg->q.limit.soft.phy_num);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3726:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(phy_num_hard, "%" GFARM_PRId64, arg->q.limit.hard.phy_num);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3895:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(inumber, "%" GFARM_PRId64, arg->inum);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3932:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(inumber, "%" GFARM_PRId64, arg->inum);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:4000:2:  [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(value, sizeof(value), "%" GFARM_PRId64, arg->value);
data/gfarm-2.7.17+dfsg/server/gfmd/dirset.c:113: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(ds->dirsetname, dirsetname);
data/gfarm-2.7.17+dfsg/server/gfmd/dirset.c:328: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(value, username);
data/gfarm-2.7.17+dfsg/server/gfmd/dirset.c:329: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(value + userlen + 1, ds->dirsetname);
data/gfarm-2.7.17+dfsg/server/gfmd/inode.c:350: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(cs->type, cksum_type);
data/gfarm-2.7.17+dfsg/server/gfmd/inode.c:5366:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(s + totallen, "/%s", names[i]);
data/gfarm-2.7.17+dfsg/server/gfmd/peer.c:1277:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(aux, "%s@%s", peer->username, hostname);
data/gfarm-2.7.17+dfsg/server/gfmd/xattr.c:1168:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(subpath, "%s/", parent_path);
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:423: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(buffer, sizeof buffer, format, ap);
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:469: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(buffer, sizeof buffer, format, ap);
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:1583:2:  [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(template, sizeof(template), format,
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:2041:2:  [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(template, sizeof(template), format,
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:2085: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(template2, sizeof(template2), format,
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:5669:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(aux, "%s@%s", username, client_name);
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:6723:2:  [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(self_addr.sun_path, sizeof self_addr.sun_path,
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:6727:2:  [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(dir_buf, sizeof dir_buf,
data/gfarm-2.7.17+dfsg/server/gfsd/spck.c:423:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(dir1, dir);
data/gfarm-2.7.17+dfsg/server/gfsd/spck.c:426: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(dir1, dp->d_name);
data/gfarm-2.7.17+dfsg/server/gfsd/statfs.c:144: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(testfile, path);
data/gfarm-2.7.17+dfsg/server/gfsd/statfs.c:145: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(testfile, TEST_FILE);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/expand_node_name.c:173: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(p, rep[*c-49]);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/expand_node_name.c:292:2:  [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(rep[deep], MAXFIGURE+1, format, i);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/expand_node_name.c:360:7:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      printf(format, r.min, r.max);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/expand_node_name.c:364:7:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      printf(format, r.min, r.max);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/expand_node_name.c:373:7:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      printf(format, i);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/glogger.c:240:7:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      execv(argv[0], argv);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:325:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(ip, inet_ntoa(*(struct in_addr*)he->h_addr));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:1038: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(file->nowpath, path);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:104:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(global_path, DEFAULTPATH);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:105:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(global_community, DEFAULTCOMM);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:106:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(global_defaultdir, DEFAULTDIR);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:108:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(global_overwrite, DEFAULTOVERWRITE);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:109:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(global_label, DEFAULTLABEL);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:615:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(community_for_set, requests_community);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:736:7:  [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(name, s.a);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:742: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(nick, s.b);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:814: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(name, s.a);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:815: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(nick, s.b);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:816: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(rule, mib_path);
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/cmd/main.cpp:62:11:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        ::execvp((const char *)argv[0], (char * const *)argv);
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/Process.h:1039:8:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	ret = vfprintf(mStdInFd, fmt, args);
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/nata_macros.h:35:28:  [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, x, y)))
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/SimpleFileParser.cpp:196:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, fmt, args);
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_logger.cpp:289:19:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
            (void)vsnprintf(msg + hdrLen, leftLen -1, fmt, args);
data/gfarm-2.7.17+dfsg/bench/bwlat-syscache/bwlat-syscache.c:83:17:  [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:b:e:i:")) != -1) {
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:307: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:e:f:i:l:n:p:rs:vwzHSX")) != -1) {
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:430:6:  [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/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:431:10:  [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.
					j = random() % 100;
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:434: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.
						(void) random();
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:436:16:  [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.
					errtag = (random() % (XFS_ERRTAG_MAX-1)) + 1;
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:439:5:  [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/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:440:9:  [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.
				j = random() % 100;
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:443: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.
					(void) random();
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:445:16:  [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.
				errtag += (random() % (XFS_ERRTAG_MAX - errtag));
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:720: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/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:722: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.
		namerand = random();
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:724: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.
		p = &ops[freq_table[random() % freq_table_size]];
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:728:17:  [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.
		p->func(opno, random());
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1423:19:  [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.
	lr = ((__int64_t)random() << 32) + random();
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1423:37:  [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.
	lr = ((__int64_t)random() << 32) + random();
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1473:16:  [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.
	which = (int)(random() % total);
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1524: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.
	li = (int)(random() % (sizeof(lengths) / sizeof(lengths[0])));
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1525: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.
	len = (int)(random() % lengths[li]);
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1585:9:  [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.
	good = random() & 1;
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1640: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.
	u = (uid_t)random();
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1641:16:  [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.
	nbits = (int)(random() % 32);
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1672:19:  [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.
	type = rtpct ? ((random() % 100) > rtpct ? FT_REG : FT_RTF) : FT_REG;
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1674: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.
		extsize = (random() % 10) + 1;
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1816:19:  [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.
	lr = ((__int64_t)random() << 32) + random();
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1816:37:  [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.
	lr = ((__int64_t)random() << 32) + random();
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1820:9:  [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 = (random() % (getpagesize() * 32)) + 1;
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1898:19:  [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.
	lr = ((__int64_t)random() << 32) + random();
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1898:37:  [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.
	lr = ((__int64_t)random() << 32) + random();
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1902:9:  [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 = (random() % (getpagesize() * 32)) + 1;
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1992:19:  [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.
	lr = ((__int64_t)random() << 32) + random();
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1992:37:  [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.
	lr = ((__int64_t)random() << 32) + random();
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:2087:26:  [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.
	if (!get_fname(FT_DIRm, random(), NULL, NULL, &fep, &v))
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:2234:19:  [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.
	lr = ((__int64_t)random() << 32) + random();
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:2234:37:  [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.
	lr = ((__int64_t)random() << 32) + random();
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:2237:9:  [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 = (random() % (getpagesize() * 32)) + 1;
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:2292:26:  [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.
	if (!get_fname(FT_DIRm, random(), NULL, NULL, &dfep, &v))
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:2365:19:  [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.
	lr = ((__int64_t)random() << 32) + random();
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:2365:37:  [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.
	lr = ((__int64_t)random() << 32) + random();
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:2370: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.
	fl.l_len = (off64_t)(random() % (1024 * 1024));
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:2456: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.
	len = (int)(random() % PATH_MAX);
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:2508:19:  [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.
	lr = ((__int64_t)random() << 32) + random();
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:2508:37:  [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.
	lr = ((__int64_t)random() << 32) + random();
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:2582:19:  [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.
	lr = ((__int64_t)random() << 32) + random();
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:2582:37:  [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.
	lr = ((__int64_t)random() << 32) + random();
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:2587: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.
	fl.l_len = (off64_t)(random() % (1 << 20));
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:2635:19:  [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.
	lr = ((__int64_t)random() << 32) + random();
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:2635:37:  [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.
	lr = ((__int64_t)random() << 32) + random();
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:2639:9:  [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 = (random() % (getpagesize() * 32)) + 1;
data/gfarm-2.7.17+dfsg/bench/fsysbench/fsysbench.c:898: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, "w:d:f:iruF")) != EOF) {
data/gfarm-2.7.17+dfsg/bench/gfcreate-test/gfcreate-test.c:174: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:f:p:s:h:v?")) != -1) {
data/gfarm-2.7.17+dfsg/bench/gfiops/gfiops.c:707: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, "h?")) != -1) {
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-autoreplica/gfperf-autoreplica-main.c:182:7:  [3] (buffer) getopt_long:
  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.
		r = getopt_long(argc, argv, optstr,
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-autoreplica/gfperf-autoreplica-main.c:185:7:  [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.
		r = getopt(argc, argv, optstr);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-copy/gfperf-copy-main.c:76:7:  [3] (buffer) getopt_long:
  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.
		r = getopt_long(argc, argv, optstr,
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-copy/gfperf-copy-main.c:79:7:  [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.
		r = getopt(argc, argv, optstr);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-metadata/gfperf-metadata-main.c:61:7:  [3] (buffer) getopt_long:
  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.
		r = getopt_long(argc, argv, optstr,
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-metadata/gfperf-metadata-main.c:64:7:  [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.
		r = getopt(argc, argv, optstr);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-parallel-read/gfperf-parallel-read-main.c:114:7:  [3] (buffer) getopt_long:
  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.
		r = getopt_long(argc, argv, optstr,
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-parallel-read/gfperf-parallel-read-main.c:117:7:  [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.
		r = getopt(argc, argv, optstr);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-parallel-read/gfperf-parallel-read-main.c:239: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(time(NULL));
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-parallel-read/gfperf-parallel-read-main.c:252:24:  [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.
		offset = ((long long)random()<<32) + random();
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-parallel-read/gfperf-parallel-read-main.c:252:40:  [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.
		offset = ((long long)random()<<32) + random();
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-parallel-read/gfperf-parallel-read-main.c:350: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(time(NULL));
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-parallel-read/gfperf-parallel-read-main.c:363:24:  [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.
		offset = ((long long)random()<<32) + random();
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-parallel-read/gfperf-parallel-read-main.c:363:40:  [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.
		offset = ((long long)random()<<32) + random();
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-parallel-write/gfperf-parallel-write-main.c:118:7:  [3] (buffer) getopt_long:
  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.
		r = getopt_long(argc, argv, optstr,
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-parallel-write/gfperf-parallel-write-main.c:121:7:  [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.
		r = getopt(argc, argv, optstr);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-parallel-write/gfperf-parallel-write-main.c:254: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(time(NULL));
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-parallel-write/gfperf-parallel-write-main.c:267:24:  [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.
		offset = ((long long)random()<<32) + random();
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-parallel-write/gfperf-parallel-write-main.c:267:40:  [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.
		offset = ((long long)random()<<32) + random();
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-parallel-write/gfperf-parallel-write-main.c:373: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(time(NULL));
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-parallel-write/gfperf-parallel-write-main.c:386:24:  [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.
		offset = ((long long)random()<<32) + random();
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-parallel-write/gfperf-parallel-write-main.c:386:40:  [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.
		offset = ((long long)random()<<32) + random();
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-read/gfperf-read-main.c:108:7:  [3] (buffer) getopt_long:
  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.
		r = getopt_long(argc, argv, optstr,
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-read/gfperf-read-main.c:111:7:  [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.
		r = getopt(argc, argv, optstr);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-read/gfperf-read-main.c:248: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(time(NULL));
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-read/gfperf-read-main.c:259: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.
	offset = ((long long)random()<<32) + random();
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-read/gfperf-read-main.c:259: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.
	offset = ((long long)random()<<32) + random();
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-read/gfperf-read-main.c:271:24:  [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.
		offset = ((long long)random()<<32) + random();
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-read/gfperf-read-main.c:271:40:  [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.
		offset = ((long long)random()<<32) + random();
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-read/gfperf-read-main.c:375: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(time(NULL));
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-read/gfperf-read-main.c:386: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.
	offset = ((long long)random()<<32) + random();
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-read/gfperf-read-main.c:386: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.
	offset = ((long long)random()<<32) + random();
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-read/gfperf-read-main.c:399:24:  [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.
		offset = ((long long)random()<<32) + random();
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-read/gfperf-read-main.c:399:40:  [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.
		offset = ((long long)random()<<32) + random();
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-replica/gfperf-replica-main.c:85:7:  [3] (buffer) getopt_long:
  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.
		r = getopt_long(argc, argv, optstr,
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-replica/gfperf-replica-main.c:88:7:  [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.
		r = getopt(argc, argv, optstr);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-tree/gfperf-tree-main.c:336:7:  [3] (buffer) getopt_long:
  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.
		r = getopt_long(argc, argv, optstr,
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-tree/gfperf-tree-main.c:339:7:  [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.
		r = getopt(argc, argv, optstr);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-write/gfperf-write-main.c:111:7:  [3] (buffer) getopt_long:
  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.
		r = getopt_long(argc, argv, optstr,
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-write/gfperf-write-main.c:114:7:  [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.
		r = getopt(argc, argv, optstr);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-write/gfperf-write-main.c:256: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(time(NULL));
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-write/gfperf-write-main.c:267: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.
	offset = ((long long)random()<<32) + random();
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-write/gfperf-write-main.c:267: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.
	offset = ((long long)random()<<32) + random();
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-write/gfperf-write-main.c:279:24:  [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.
		offset = ((long long)random()<<32) + random();
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-write/gfperf-write-main.c:279:40:  [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.
		offset = ((long long)random()<<32) + random();
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-write/gfperf-write-main.c:393: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(time(NULL));
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-write/gfperf-write-main.c:404: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.
	offset = ((long long)random()<<32) + random();
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-write/gfperf-write-main.c:404: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.
	offset = ((long long)random()<<32) + random();
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-write/gfperf-write-main.c:417:24:  [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.
		offset = ((long long)random()<<32) + random();
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-write/gfperf-write-main.c:417:40:  [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.
		offset = ((long long)random()<<32) + random();
data/gfarm-2.7.17+dfsg/bench/thput-fsstripe/thput-fsstripe.c:221:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "a:b:g:i:m:o:p:s:v")) != -1) {
data/gfarm-2.7.17+dfsg/bench/thput-fsys/thput-fsys.c:380: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:s:wrcmp")) != -1) {
data/gfarm-2.7.17+dfsg/bench/thput-gfpio/thput-gfpio.c:452: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:s:wrcm")) != -1) {
data/gfarm-2.7.17+dfsg/bench/thput-pvfs/thput-pvfs.c:383: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:s:n:t:wrcmp")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/addpath/addpath.c:136: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")) != EOF) {
data/gfarm-2.7.17+dfsg/gftool/gfchmod/gfchmod.c:71: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, "hR?")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfchown/gfchown.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, "hR?")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfcksum/gfcksum.c:231:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "ch:lrTtv?")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfdf/gfdf.c:693: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, "ahiHnruD:P:RSUV?")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfdump/gfdump.c:523: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, "df:rtv")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfexport/gfexport.c:60: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.
	char *url, *realpath, *hostname = NULL;
data/gfarm-2.7.17+dfsg/gftool/gfexport/gfexport.c:73:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "h:o:ps:?")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfexport/gfexport.c:101:44:  [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.
		e = gfarm_realpath_by_gfarm2fs(argv[i], &realpath);
data/gfarm-2.7.17+dfsg/gftool/gfexport/gfexport.c:103:10:  [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.
			url = realpath;
data/gfarm-2.7.17+dfsg/gftool/gfexport/gfexport.c:115: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.
		free(realpath);
data/gfarm-2.7.17+dfsg/gftool/gffindxmlattr/gffindxmlattr.c:97: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:f:F:h?")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gffindxmlattr/gffindxmlattr.c:128:44:  [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.
		e = gfarm_realpath_by_gfarm2fs(argv[1], &realpath);
data/gfarm-2.7.17+dfsg/gftool/gffindxmlattr/gffindxmlattr.c:130:11:  [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.
			path = realpath;
data/gfarm-2.7.17+dfsg/gftool/gffindxmlattr/gffindxmlattr.c:142:44:  [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.
		e = gfarm_realpath_by_gfarm2fs(argv[0], &realpath);
data/gfarm-2.7.17+dfsg/gftool/gffindxmlattr/gffindxmlattr.c:144:11:  [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.
			path = realpath;
data/gfarm-2.7.17+dfsg/gftool/gffindxmlattr/gffindxmlattr.c:156: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.
	free(realpath);
data/gfarm-2.7.17+dfsg/gftool/gfgetfacl/gfgetfacl.c:118: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, "h?")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfgetfacl/gfgetfacl.c:134:44:  [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.
		e = gfarm_realpath_by_gfarm2fs(argv[i], &realpath);
data/gfarm-2.7.17+dfsg/gftool/gfgetfacl/gfgetfacl.c:136: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.
			argv[i] = realpath;
data/gfarm-2.7.17+dfsg/gftool/gfgetfacl/gfgetfacl.c:143: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.
		free(realpath);
data/gfarm-2.7.17+dfsg/gftool/gfgroup/gfgroup.c:239: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, "P:acdlmr?")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfgroup/gfgroup.c:262:40:  [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 (gfarm_realpath_by_gfarm2fs(path, &realpath) == GFARM_ERR_NO_ERROR)
data/gfarm-2.7.17+dfsg/gftool/gfgroup/gfgroup.c:263:10:  [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.
		path = realpath;
data/gfarm-2.7.17+dfsg/gftool/gfgroup/gfgroup.c:270: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.
	free(realpath);
data/gfarm-2.7.17+dfsg/gftool/gfhost/gfhost.c:1286: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, "AD:HLMP:RUa:cdf:ij:lmn:p:ruv?"))
data/gfarm-2.7.17+dfsg/gftool/gfhost/gfhost.c:1435:44:  [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.
	e = gfarm_realpath_by_gfarm2fs(opt_path, &realpath);
data/gfarm-2.7.17+dfsg/gftool/gfhost/gfhost.c:1437: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.
		opt_path = realpath;
data/gfarm-2.7.17+dfsg/gftool/gfhost/gfhost.c:1473: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.
	free(realpath);
data/gfarm-2.7.17+dfsg/gftool/gfhostgroup/gfhostgroup.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, "P:sr?")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfhostgroup/gfhostgroup.c:201:44:  [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.
	e = gfarm_realpath_by_gfarm2fs(opt_path, &realpath);
data/gfarm-2.7.17+dfsg/gftool/gfhostgroup/gfhostgroup.c:203: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.
		opt_path = realpath;
data/gfarm-2.7.17+dfsg/gftool/gfhostgroup/gfhostgroup.c:210: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.
	free(realpath);
data/gfarm-2.7.17+dfsg/gftool/gfjournal/gfjournal.c:541: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, "dhlmrv?")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfkey/gfkey.c:77:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "ceflp:L:V?")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfln/gfln.c:39: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, "sh?")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfls/gfls.c:673:13:  [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.
		char *s = getenv("COLUMNS");
data/gfarm-2.7.17+dfsg/gftool/gfls/gfls.c:689: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, "1ACDE:FRSTVadhilrt?")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfls/gfls.c:759:40:  [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 (gfarm_realpath_by_gfarm2fs(dot, &realpath)
data/gfarm-2.7.17+dfsg/gftool/gfls/gfls.c:761:10:  [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.
			cwd = realpath;
data/gfarm-2.7.17+dfsg/gftool/gfls/gfls.c:765: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.
		free(realpath);
data/gfarm-2.7.17+dfsg/gftool/gfls/gfls.c:771:45:  [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.
			e = gfarm_realpath_by_gfarm2fs(argv[i], &realpath);
data/gfarm-2.7.17+dfsg/gftool/gfls/gfls.c:773: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.
				argv[i] = realpath;
data/gfarm-2.7.17+dfsg/gftool/gfls/gfls.c:776:9:  [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.
			free(realpath);
data/gfarm-2.7.17+dfsg/gftool/gflsof/gflsof.c:270: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, "CGAD:P:U:Wu:?")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gflsof/gflsof.c:324:44:  [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 (gfarm_realpath_by_gfarm2fs(opt_path, &realpath)
data/gfarm-2.7.17+dfsg/gftool/gflsof/gflsof.c:326: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.
		opt_path = realpath;
data/gfarm-2.7.17+dfsg/gftool/gflsof/gflsof.c:333: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.
	free(realpath);
data/gfarm-2.7.17+dfsg/gftool/gfmdhost/gfmdhost.c:358: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, "1C:NP:cdlmp:t:?"))
data/gfarm-2.7.17+dfsg/gftool/gfmdhost/gfmdhost.c:451:44:  [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 (gfarm_realpath_by_gfarm2fs(opt_path, &realpath)
data/gfarm-2.7.17+dfsg/gftool/gfmdhost/gfmdhost.c:453: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.
		opt_path = realpath;
data/gfarm-2.7.17+dfsg/gftool/gfmdhost/gfmdhost.c:484: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.
	free(realpath);
data/gfarm-2.7.17+dfsg/gftool/gfmkdir/gfmkdir.c:30:40:  [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.
	e = gfarm_realpath_by_gfarm2fs(path, &realpath);
data/gfarm-2.7.17+dfsg/gftool/gfmkdir/gfmkdir.c:32:10:  [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.
		path = realpath;
data/gfarm-2.7.17+dfsg/gftool/gfmkdir/gfmkdir.c:35: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.
		free(realpath);
data/gfarm-2.7.17+dfsg/gftool/gfmkdir/gfmkdir.c:55: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.
	free(realpath);
data/gfarm-2.7.17+dfsg/gftool/gfmkdir/gfmkdir.c:76: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, "hp?")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfmv/gfmv.c:313: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, "fix?")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfncopy/gfncopy.c:960: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, "s:S:CMrcwt:vh?")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfpath/gfpath.c:34:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "bdDE")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfprep.c:2775:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv,
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfurl.c:168: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.
	rv = realpath(path, buf);
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfurl.c:191:6:  [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.
	p = realpath(parent, buf);
data/gfarm-2.7.17+dfsg/gftool/gfquota/gfdirquota/gfdirquota.c:35:39:  [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 (gfarm_realpath_by_gfarm2fs(dir, &realpath) == GFARM_ERR_NO_ERROR)
data/gfarm-2.7.17+dfsg/gftool/gfquota/gfdirquota/gfdirquota.c:36:9:  [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.
		dir = realpath;
data/gfarm-2.7.17+dfsg/gftool/gfquota/gfdirquota/gfdirquota.c:44:9:  [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.
			free(realpath);
data/gfarm-2.7.17+dfsg/gftool/gfquota/gfdirquota/gfdirquota.c:54: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.
	free(realpath);
data/gfarm-2.7.17+dfsg/gftool/gfquota/gfdirquota/gfdirquota.c:289: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, "AP:a:cdlu:?")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfquota/gfdirquota/gfdirquota.c:344:45:  [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 (gfarm_realpath_by_gfarm2fs(opt_path, &realpath)
data/gfarm-2.7.17+dfsg/gftool/gfquota/gfdirquota/gfdirquota.c:346: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.
			opt_path = realpath;
data/gfarm-2.7.17+dfsg/gftool/gfquota/gfdirquota/gfdirquota.c:353: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.
		free(realpath);
data/gfarm-2.7.17+dfsg/gftool/gfquota/gfedquota/gfedquota.c:153:7:  [3] (buffer) getopt_long:
  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.
		c = getopt_long(argc, argv, optstring,
data/gfarm-2.7.17+dfsg/gftool/gfquota/gfedquota/gfedquota.c:156:7:  [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.
		c = getopt(argc, argv, optstring);
data/gfarm-2.7.17+dfsg/gftool/gfquota/gfedquota/gfedquota.c:208:40:  [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 (gfarm_realpath_by_gfarm2fs(path, &realpath) == GFARM_ERR_NO_ERROR)
data/gfarm-2.7.17+dfsg/gftool/gfquota/gfedquota/gfedquota.c:209:10:  [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.
		path = realpath;
data/gfarm-2.7.17+dfsg/gftool/gfquota/gfedquota/gfedquota.c:217: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.
	free(realpath);
data/gfarm-2.7.17+dfsg/gftool/gfquota/gfquota/gfquota.c:229: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, "P:D:d:g:Hhqu:?")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfquota/gfquota/gfquota.c:287:41:  [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 (gfarm_realpath_by_gfarm2fs(name, &realpath)
data/gfarm-2.7.17+dfsg/gftool/gfquota/gfquota/gfquota.c:289:11:  [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.
			name = realpath;
data/gfarm-2.7.17+dfsg/gftool/gfquota/gfquota/gfquota.c:293:41:  [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 (gfarm_realpath_by_gfarm2fs(path, &realpath)
data/gfarm-2.7.17+dfsg/gftool/gfquota/gfquota/gfquota.c:295:11:  [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.
			path = realpath;
data/gfarm-2.7.17+dfsg/gftool/gfquota/gfquota/gfquota.c:302: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.
		free(realpath);
data/gfarm-2.7.17+dfsg/gftool/gfquota/gfquota/gfquota.c:383: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.
	free(realpath);
data/gfarm-2.7.17+dfsg/gftool/gfquota/gfquotacheck/gfquotacheck.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, "P:h?")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfquota/gfquotacheck/gfquotacheck.c:59:40:  [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 (gfarm_realpath_by_gfarm2fs(path, &realpath) == GFARM_ERR_NO_ERROR)
data/gfarm-2.7.17+dfsg/gftool/gfquota/gfquotacheck/gfquotacheck.c:60:10:  [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.
		path = realpath;
data/gfarm-2.7.17+dfsg/gftool/gfquota/gfquotacheck/gfquotacheck.c:68: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.
	free(realpath);
data/gfarm-2.7.17+dfsg/gftool/gfreg/gfreg.c:1076: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:fh:iprs:D:I:H:N:?")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfreg/gfreg_simple.c:201: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, "h:o:ps:wv?")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfrep/gfrep.c:809:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "h:j:mnqvxS:D:H:N:?")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfrep/gfrep.c:811:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "h:mnqvxS:D:H:N:?")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfrep/gfrep.c:899:41:  [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.
		e = gfarm_realpath_by_gfarm2fs(file, &realpath);
data/gfarm-2.7.17+dfsg/gftool/gfrep/gfrep.c:901:11:  [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.
			file = realpath;
data/gfarm-2.7.17+dfsg/gftool/gfrep/gfrep.c:904: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.
		free(realpath);
data/gfarm-2.7.17+dfsg/gftool/gfrep/gfrep_simple.c:121: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:s:hr?")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfrepcheck/gfrepcheck.c:154: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, "P:?")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfrepcheck/gfrepcheck.c:214:40:  [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 (gfarm_realpath_by_gfarm2fs(path, &realpath) == GFARM_ERR_NO_ERROR)
data/gfarm-2.7.17+dfsg/gftool/gfrepcheck/gfrepcheck.c:215:10:  [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.
		path = realpath;
data/gfarm-2.7.17+dfsg/gftool/gfrepcheck/gfrepcheck.c:295: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.
	free(realpath);
data/gfarm-2.7.17+dfsg/gftool/gfrm/gfrm.c:606:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "a:fh:j:nqrvD:H:I:N:R?")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfrm/gfrm.c:608:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "a:fh:nqrvD:H:I:N:R?")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfrm/gfrm_simple.c:152: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:fh:nr?")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfrmdir/gfrmdir.c:38: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, "h?")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfsched/gfsched.c:123: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:LMOP:SVcf:ln:w")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfsched/gfsched.c:183:45:  [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.
		e = gfarm_realpath_by_gfarm2fs(opt_file, &realpath);
data/gfarm-2.7.17+dfsg/gftool/gfsched/gfsched.c:185:11:  [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.
			path = realpath;
data/gfarm-2.7.17+dfsg/gftool/gfsched/gfsched.c:212:41:  [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.
		e = gfarm_realpath_by_gfarm2fs(path, &realpath);
data/gfarm-2.7.17+dfsg/gftool/gfsched/gfsched.c:214:11:  [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.
			path = realpath;
data/gfarm-2.7.17+dfsg/gftool/gfsched/gfsched.c:282: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.
	free(realpath);
data/gfarm-2.7.17+dfsg/gftool/gfsck/gfsck.c:278: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, "fhv?")) != EOF) {
data/gfarm-2.7.17+dfsg/gftool/gfsetdir/gfsetdir.c:46:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "sc")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfsetdir/gfsetdir.c:97:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		char *shell = getenv("SHELL");
data/gfarm-2.7.17+dfsg/gftool/gfsetfacl/gfsetfacl.c:565: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, "bkm:M:nrth?")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfspoolmd5/gfspoolmd5.c:490: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, "fh:m:nr:GM:?")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfstat/gfstat.c:133: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, "Mch:lr?")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfstat/gfstat.c:177:42:  [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.
		e = gfarm_realpath_by_gfarm2fs(*argv, &realpath);
data/gfarm-2.7.17+dfsg/gftool/gfstat/gfstat.c:179:12:  [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.
			*argv = realpath;
data/gfarm-2.7.17+dfsg/gftool/gfstat/gfstat.c:189:9:  [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.
			free(realpath);
data/gfarm-2.7.17+dfsg/gftool/gfstat/gfstat.c:202:9:  [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.
			free(realpath);
data/gfarm-2.7.17+dfsg/gftool/gfstat/gfstat.c:220: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.
		free(realpath);
data/gfarm-2.7.17+dfsg/gftool/gfstatus/gfstatus.c:107: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.
	rc = getenv("GFARM_CONFIG_FILE");
data/gfarm-2.7.17+dfsg/gftool/gfstatus/gfstatus.c:284: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, "dlLmMP:V?"))
data/gfarm-2.7.17+dfsg/gftool/gfstatus/gfstatus.c:322:41:  [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 (gfarm_realpath_by_gfarm2fs(path, &realpath)
data/gfarm-2.7.17+dfsg/gftool/gfstatus/gfstatus.c:324:11:  [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.
			path = realpath;
data/gfarm-2.7.17+dfsg/gftool/gfstatus/gfstatus.c:396: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.
	free(realpath);
data/gfarm-2.7.17+dfsg/gftool/gftest/gftest.c:97:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "d:e:f:h:r:s:w:x:L:R:?")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gftest/gftest.c:99:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "d:e:f:h:s:L:R:?")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gftest/gftest.c:130:40:  [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.
	e = gfarm_realpath_by_gfarm2fs(file, &realpath);
data/gfarm-2.7.17+dfsg/gftool/gftest/gftest.c:132:10:  [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.
		file = realpath;
data/gfarm-2.7.17+dfsg/gftool/gftest/gftest.c:136: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.
		free(realpath);
data/gfarm-2.7.17+dfsg/gftool/gftest/gftest.c:162: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.
	free(realpath);
data/gfarm-2.7.17+dfsg/gftool/gfusage/gfusage.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, "P:gHh?")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfusage/gfusage.c:269:40:  [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 (gfarm_realpath_by_gfarm2fs(path, &realpath) == GFARM_ERR_NO_ERROR)
data/gfarm-2.7.17+dfsg/gftool/gfusage/gfusage.c:270:10:  [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.
		path = realpath;
data/gfarm-2.7.17+dfsg/gftool/gfusage/gfusage.c:300: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.
	free(realpath);
data/gfarm-2.7.17+dfsg/gftool/gfuser/gfuser.c:133: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, "P:cdhlm?")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfuser/gfuser.c:153:40:  [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 (gfarm_realpath_by_gfarm2fs(path, &realpath) == GFARM_ERR_NO_ERROR)
data/gfarm-2.7.17+dfsg/gftool/gfuser/gfuser.c:154:10:  [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.
		path = realpath;
data/gfarm-2.7.17+dfsg/gftool/gfuser/gfuser.c:161: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.
	free(realpath);
data/gfarm-2.7.17+dfsg/gftool/gfvoms-sync/gfvoms-update/gfvoms-update.c:954: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, ":V:v:m:hnd")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfwhere/gfwhere.c:208:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "adFh:ilm:orR?")) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfwhoami/gfwhoami.c:55: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, GFWHOAMI_GETOPT_ARG)) != -1) {
data/gfarm-2.7.17+dfsg/gftool/gfwhoami/gfwhoami.c:75:40:  [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 (gfarm_realpath_by_gfarm2fs(path, &realpath) == GFARM_ERR_NO_ERROR)
data/gfarm-2.7.17+dfsg/gftool/gfwhoami/gfwhoami.c:76:10:  [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.
		path = realpath;
data/gfarm-2.7.17+dfsg/gftool/gfwhoami/gfwhoami.c:83: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.
	free(realpath);
data/gfarm-2.7.17+dfsg/gftool/gfxattr/gfxattr.c:371: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, opts)) != -1) {
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/config_client.c:51: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.
	rc = getenv("GFARM_CONFIG_FILE");
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/config_client.c:114:13:  [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 ((env = getenv("GFARM_FLAGS")) != NULL) {
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_dir.c:67: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.
	tmp = getenv("GFS_PWD");
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_dir.c:140:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	else if ((path = getenv("GFS_PWD")) != NULL)
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_rdma.c:232: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("GFARM_RDMA_DISABLE")) {
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_rdma.c:250:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((conf_dev = getenv("GFARM_RDMA_DEVICE")) == NULL)
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_rdma.c:253:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((p = getenv("GFARM_RDMA_PORT")) == NULL
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/host.c:372: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.
		    getenv("GFARM_ARCHITECTURE")) != NULL) {
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/client.c:36:17:  [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, "s:h:" COMMON_OPTIONS)) != -1) {
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/client2.c:31:17:  [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, "h:"  COMMON_OPTIONS)) != -1) {
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/misc.c:164: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.
	dir = getenv(GFARM_INSTALL_DIR_ENV);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/scarg.c:105: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.
	arg = getenv("USER");
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/scarg.c:107:12:  [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.
	    arg = getenv("LOGNAME");
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/scsub.c:149:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(time(NULL));
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/server.c:41:17:  [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, "h:" COMMON_OPTIONS)) != -1) {
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/server2.c:37:17:  [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, COMMON_OPTIONS)) != -1) {
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/random.c:16: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(t.tv_sec + t.tv_usec + getpid());
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/random.c:18:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(t.tv_sec + t.tv_usec + getpid());
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/random.c:32: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.
	rv = random();
data/gfarm-2.7.17+dfsg/linux/kernel/usr/stdlib.h:32:1:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
getenv(const char *name)
data/gfarm-2.7.17+dfsg/linux/kernel/usr/stdlib.h:46:20:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
static inline void srand(unsigned seed)
data/gfarm-2.7.17+dfsg/linux/ugidmapd/idmapd.c:765: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, GETOPTSTR)) != -1) {
data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/empty_acl/empty_acl.c:33: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, "ad")) != -1) {
data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfm_inode_or_name_op_test/gfm_inode_or_name_op_test.c:392: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, "IJNPQRSp")) != -1) {
data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfs_dir_test/gfs_dir_test.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, "ARS:Telsv")) != -1) {
data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfs_getxattr_cached/size0.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, "c")) != -1) {
data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfs_pio_stat/gfs_stat_pio_stat_consistency.c:73: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, "acmNrRwWh:")) != -1) {
data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfs_pio_test/gfs_pio_test.c:102: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,
data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfs_stat_cached/gfs_stat_cached_test.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, GETOPT_OPTS)) != -1) {
data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfs_xattr/test_gfxattr.c:248: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, opts)) != -1) {
data/gfarm-2.7.17+dfsg/regress/manual/server/gfsd/fo_notify_test/fo_notify_test.c:132: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, "P:c:x:r:vf")) != -1) {
data/gfarm-2.7.17+dfsg/regress/server/gfmd/db_journal/db_journal_test.c:3619: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.
	char *config  = getenv("GFARM_CONFIG_FILE");
data/gfarm-2.7.17+dfsg/regress/server/gfmd/db_journal/db_journal_test.c:3632: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, GETOPT_ARG)) != -1) {
data/gfarm-2.7.17+dfsg/server/gfmd/gfmd.c:1840:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "F:L:P:df:p:Ss:tu:v")) != -1) {
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:6941:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "F:L:P:cdf:h:l:r:s:v")) != -1) {
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_uid.cpp:99:26:  [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.
    *rnd0Ptr = (uint32_t)random();
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_uid.cpp:100:26:  [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.
    *rnd1Ptr = (uint32_t)random();
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_uid.cpp:101:26:  [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.
    *rnd2Ptr = (uint32_t)random();
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_uid.cpp:102:26:  [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.
    *rnd3Ptr = (uint32_t)random();
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_uid.cpp:134:5:  [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/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_uid.cpp:140:9:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        srand(seed);
data/gfarm-2.7.17+dfsg/bench/bwlat-syscache/bwlat-syscache.c:85:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	case 'a': alignment = atoi(optarg); break;
data/gfarm-2.7.17+dfsg/bench/bwlat-syscache/bwlat-syscache.c:86:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	case 'b': blocksize = atoi(optarg); break;
data/gfarm-2.7.17+dfsg/bench/bwlat-syscache/bwlat-syscache.c:87:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	case 'e': elapsed_time = atoi(optarg); break;
data/gfarm-2.7.17+dfsg/bench/bwlat-syscache/bwlat-syscache.c:88:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	case 'i': iterations = atoi(optarg); break;
data/gfarm-2.7.17+dfsg/bench/bwlat-syscache/bwlat-syscache.c:106:10:  [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(argv[0], O_RDONLY);
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:279: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[10];
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:287: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		cmd[256];
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:338: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).
			loops = atoi(optarg);
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:341: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).
			operations = atoi(optarg);
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:344: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).
			nproc = atoi(optarg);
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:404: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, "fss%x", getpid());
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:538: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[MAXNAMELEN];
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:558: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[MAXNAMELEN];
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:578: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[MAXNAMELEN];
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:614: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[MAXNAMELEN];
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:706: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[10];
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:711: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, "p%x", procid);
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:747: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[MAXNAMELEN];
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:758:6:  [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.
	i = sprintf(buf, "%c%x", flp->tag, fep->id);
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:792: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[MAXNAMELEN];
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:799: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.
	len = sprintf(buf, "%c%x", flp->tag, id = nameseq++);
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:881: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[MAXNAMELEN];
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:900: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		buf1[MAXNAMELEN];
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:901: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		buf2[MAXNAMELEN];
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:955: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[MAXNAMELEN];
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:991: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[MAXNAMELEN];
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1010: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[MAXNAMELEN];
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1051: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[MAXNAMELEN];
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1055: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).
	rval = open(name->path, oflag);
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1070: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[MAXNAMELEN];
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1100: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).
			p->freq = atoi(s);
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1111: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[MAXNAMELEN];
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1130: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		buf1[MAXNAMELEN];
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1131: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		buf2[MAXNAMELEN];
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1185: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[MAXNAMELEN];
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1258: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[MAXNAMELEN];
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1277: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[MAXNAMELEN];
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1301: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[MAXNAMELEN];
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1320: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[MAXNAMELEN];
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1443: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[4096];
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1511: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		aname[10];
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1523: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(aname, "a%x", nameseq++);
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1554: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(".", O_RDONLY);
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1612: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(".", O_RDONLY);
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:2251: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/gfarm-2.7.17+dfsg/bench/fsysbench/fsysbench.c:458: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(name, O_RDONLY);
data/gfarm-2.7.17+dfsg/bench/fsysbench/fsysbench.c:481: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 c[8];
data/gfarm-2.7.17+dfsg/bench/fsysbench/fsysbench.c:487: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(name, O_RDONLY);
data/gfarm-2.7.17+dfsg/bench/fsysbench/fsysbench.c:519: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 c[8];
data/gfarm-2.7.17+dfsg/bench/fsysbench/fsysbench.c:526: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(name, O_WRONLY);
data/gfarm-2.7.17+dfsg/bench/fsysbench/fsysbench.c:651: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 newname[16];
data/gfarm-2.7.17+dfsg/bench/fsysbench/fsysbench.c:696: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 newname[16];
data/gfarm-2.7.17+dfsg/bench/fsysbench/fsysbench.c:722: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 dirname[16], filename[16];
data/gfarm-2.7.17+dfsg/bench/fsysbench/fsysbench.c:723: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 cwd[PATH_MAX];
data/gfarm-2.7.17+dfsg/bench/fsysbench/fsysbench.c:807: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[16];
data/gfarm-2.7.17+dfsg/bench/fsysbench/fsysbench.c:828: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[16];
data/gfarm-2.7.17+dfsg/bench/fsysbench/fsysbench.c:908: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).
			conf.dirs = atoi(optarg);
data/gfarm-2.7.17+dfsg/bench/fsysbench/fsysbench.c:915: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).
			conf.files = atoi(optarg);
data/gfarm-2.7.17+dfsg/bench/gfcreate-test/gfcreate-test.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[BUFSIZE];
data/gfarm-2.7.17+dfsg/bench/gfcreate-test/gfcreate-test.c:117: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[PATH_MAX];
data/gfarm-2.7.17+dfsg/bench/gfcreate-test/gfcreate-test.c:177: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).
			n_dir = atoi(optarg);
data/gfarm-2.7.17+dfsg/bench/gfcreate-test/gfcreate-test.c:180: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).
			n_file = atoi(optarg);
data/gfarm-2.7.17+dfsg/bench/gfcreate-test/gfcreate-test.c:183: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).
			n_para = atoi(optarg);
data/gfarm-2.7.17+dfsg/bench/gfiops/gfiops.c:103: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[10];
data/gfarm-2.7.17+dfsg/bench/gfiops/gfiops.c:169: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 name[2048];
data/gfarm-2.7.17+dfsg/bench/gfiops/gfiops.c:271: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[BUFSIZE];
data/gfarm-2.7.17+dfsg/bench/gfiops/gfiops.c:319: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[BUFSIZE];
data/gfarm-2.7.17+dfsg/bench/gfiops/gfiops.c:446: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 line[MAX_LINE];
data/gfarm-2.7.17+dfsg/bench/gfiops/gfiops.c:549: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 line[MAX_LINE];
data/gfarm-2.7.17+dfsg/bench/gfiops/gfiops.c:580: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 name[64];
data/gfarm-2.7.17+dfsg/bench/gfiops/gfiops.c:596: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 suf[64];
data/gfarm-2.7.17+dfsg/bench/gfiops/gfiops.c:643: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 line[MAX_LINE];
data/gfarm-2.7.17+dfsg/bench/gfiops/gfiops.c:664: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(&fdset_tmp, &fdset_orig, sizeof(fd_set));
data/gfarm-2.7.17+dfsg/bench/gfiops/gfiops.c:724:11:  [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).
	nprocs = atoi(argv[1]);
data/gfarm-2.7.17+dfsg/bench/gfiops/gfiops.c:725:11:  [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).
	ntimes = atoi(argv[2]);
data/gfarm-2.7.17+dfsg/bench/gfiops/gfiops.c:726: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).
	type = atoi(argv[3]);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-autoreplica/gfperf-autoreplica-main.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 *filename[0];
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-autoreplica/gfperf-autoreplica-main.c:44:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char num_str[16];
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-autoreplica/gfperf-autoreplica-main.c:204: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).
			number = atoi(optarg);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-autoreplica/gfperf-autoreplica-main.c:207: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).
			stop_waiting = atoi(optarg);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-autoreplica/gfperf-autoreplica-main.c:210: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).
			replicate = atoi(optarg);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-copy/gfperf-copy-gfarm2fs.c:119: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).
	sf = open(src_filename, O_RDONLY);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-copy/gfperf-copy-gfarm2fs.c:128: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).
	df = open(dst_filename, O_WRONLY|O_CREAT, 0644);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-copy/gfperf-copy-libgfarm.c:51: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).
	sf = open(src, O_RDONLY);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-copy/gfperf-copy-libgfarm.c:196: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).
	df = open(dst, O_WRONLY|O_CREAT|O_TRUNC, 0644);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-lib/create_file.c:108: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).
	fp = open(filename, O_WRONLY|O_CREAT|O_EXCL, 0644);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-metadata/gfperf-metadata-gfarm2fs.c:34:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char filename[1024];
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-metadata/gfperf-metadata-gfarm2fs.c:320: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[BUF_SIZE];
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-metadata/gfperf-metadata-gfarm2fs.c:495: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[BUF_SIZE];
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-metadata/gfperf-metadata-libgfarm.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 filename[1024];
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-metadata/gfperf-metadata-libgfarm.c:500: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 value[1024];
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-metadata/gfperf-metadata-main.c:25: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 hostname[1024];
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-metadata/gfperf-metadata-main.c:72: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).
			loop_number = atoi(optarg);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-metadata/gfperf-metadata-main.c:116: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(hostname, "unknown");
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-metadata/gfperf-metadata.h:24: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 *names[0];
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-parallel-read/gfperf-parallel-read-main.c:33:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char hostname[1024];
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-parallel-read/gfperf-parallel-read-main.c:153: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).
			timeout = atoi(optarg);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-parallel-read/gfperf-parallel-read-main.c:173: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(hostname, "unknown");
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-parallel-read/gfperf-parallel-read-main.c:187: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(filename, O_RDONLY);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-parallel-read/gfperf-parallel-read-main.c:241: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(filename, O_RDONLY);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-parallel-write/gfperf-parallel-write-main.c:33:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char hostname[1024];
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-parallel-write/gfperf-parallel-write-main.c:160: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).
			timeout = atoi(optarg);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-parallel-write/gfperf-parallel-write-main.c:180: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(hostname, "unknown");
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-parallel-write/gfperf-parallel-write-main.c:194: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(filename, O_WRONLY|O_CREAT, 0644);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-parallel-write/gfperf-parallel-write-main.c:256: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(filename, O_WRONLY|O_CREAT, 0644);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-read/gfperf-read-main.c:32: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 hostname[1024];
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-read/gfperf-read-main.c:147: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).
			timeout = atoi(optarg);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-read/gfperf-read-main.c:161: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(hostname, "unknown");
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-read/gfperf-read-main.c:175: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(filename, O_RDONLY);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-read/gfperf-read-main.c:250: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(filename, O_RDONLY);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-tree/gfperf-tree-main.c:32: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 hostname[1024];
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-tree/gfperf-tree-main.c:350: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).
			width = atoi(optarg);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-tree/gfperf-tree-main.c:353: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).
			depth = atoi(optarg);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-tree/gfperf-tree-main.c:379: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(hostname, "unknown");
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-write/gfperf-write-main.c:32: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 hostname[1024];
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-write/gfperf-write-main.c:153: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).
			timeout = atoi(optarg);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-write/gfperf-write-main.c:167: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(hostname, "unknown");
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-write/gfperf-write-main.c:181: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(filename, O_WRONLY|O_CREAT, 0644);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-write/gfperf-write-main.c:258: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(filename, O_WRONLY|O_CREAT, 0644);
data/gfarm-2.7.17+dfsg/bench/nconnect/nconnect.c:79:9:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define	bcopy(s, d, length)	memcpy(d, s, length)
data/gfarm-2.7.17+dfsg/bench/nconnect/nconnect.c:79:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define	bcopy(s, d, length)	memcpy(d, s, length)
data/gfarm-2.7.17+dfsg/bench/nconnect/nconnect.c:216:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(pathname, address->sun_path, len + 1);
data/gfarm-2.7.17+dfsg/bench/nconnect/nconnect.c:256:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		bcopy(hp->h_addr, (char *)&address->sin_addr,
data/gfarm-2.7.17+dfsg/bench/nconnect/nconnect.c:277: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).
		return htons(atoi(portname));
data/gfarm-2.7.17+dfsg/bench/nconnect/nconnect.c:446: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[QBUFSIZE];
data/gfarm-2.7.17+dfsg/bench/nconnect/nconnect.c:498:21:  [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).
			session_log_fp = fopen(session_log, "a");
data/gfarm-2.7.17+dfsg/bench/nconnect/nconnect.c:623:33:  [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).
				sockopts[nsockopts].value = atol(equal + 1);
data/gfarm-2.7.17+dfsg/bench/nconnect/nconnect.c:766: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[BUFSIZ];
data/gfarm-2.7.17+dfsg/bench/nconnect/nconnect.c:972:24:  [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 ((port_output = fopen(s, "w")) == NULL)
data/gfarm-2.7.17+dfsg/bench/thput-fsstripe/thput-fsstripe.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 buffer[MAX_IOSIZE];
data/gfarm-2.7.17+dfsg/bench/thput-fsstripe/thput-fsstripe.c:39: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).
	int fd = open(filename, O_RDONLY);
data/gfarm-2.7.17+dfsg/bench/thput-fsys/thput-fsys.c:124: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(ofile, O_CREAT|O_TRUNC|O_WRONLY, 0666);
data/gfarm-2.7.17+dfsg/bench/thput-fsys/thput-fsys.c:173: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(ifile, O_RDONLY);
data/gfarm-2.7.17+dfsg/bench/thput-fsys/thput-fsys.c:219: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).
	ifd = open(ifile, O_RDONLY);
data/gfarm-2.7.17+dfsg/bench/thput-fsys/thput-fsys.c:224: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).
	ofd = open(ofile, O_CREAT|O_TRUNC|O_WRONLY, 0666);
data/gfarm-2.7.17+dfsg/bench/thput-gfpio/thput-gfpio.c:91:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char buffer[MAX_BUFFER_SIZE];
data/gfarm-2.7.17+dfsg/bench/thput-pvfs/thput-pvfs.c:90:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char buffer[MAX_BUFFER_SIZE];
data/gfarm-2.7.17+dfsg/bench/thput-pvfs/thput-pvfs.c:93: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 _hname[MAXHOSTNAMELEN];
data/gfarm-2.7.17+dfsg/bench/thput-pvfs/thput-pvfs.c:354: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 bfile1[MAXHOSTNAMELEN + strlen(PVFS_MOUNT file_prefix) + 4];
data/gfarm-2.7.17+dfsg/bench/thput-pvfs/thput-pvfs.c:355: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 bfile2[MAXHOSTNAMELEN + strlen(PVFS_MOUNT file_prefix) + 4];
data/gfarm-2.7.17+dfsg/gftool/addpath/addpath.c:162: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).
			nfrags = atoi(argv[0]);
data/gfarm-2.7.17+dfsg/gftool/gfcksum/gfcksum.c:55:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char s[BUFSIZE];
data/gfarm-2.7.17+dfsg/gftool/gfdf/gfdf.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 capbuf[GFARM_INT64STRLEN];
data/gfarm-2.7.17+dfsg/gftool/gfdf/gfdf.c:128: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 usedbuf[GFARM_INT64STRLEN];
data/gfarm-2.7.17+dfsg/gftool/gfdf/gfdf.c:129: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 availbuf[GFARM_INT64STRLEN];
data/gfarm-2.7.17+dfsg/gftool/gfdf/gfdf.c:130: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 filesbuf[GFARM_INT64STRLEN];
data/gfarm-2.7.17+dfsg/gftool/gfdf/gfdf.c:481: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 block_capbuf[GFARM_INT64STRLEN];
data/gfarm-2.7.17+dfsg/gftool/gfdf/gfdf.c:482: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 block_usedbuf[GFARM_INT64STRLEN];
data/gfarm-2.7.17+dfsg/gftool/gfdf/gfdf.c:483: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 block_availbuf[GFARM_INT64STRLEN];
data/gfarm-2.7.17+dfsg/gftool/gfdf/gfdf.c:484: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 inode_capbuf[GFARM_INT64STRLEN];
data/gfarm-2.7.17+dfsg/gftool/gfdf/gfdf.c:485: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 inode_usedbuf[GFARM_INT64STRLEN];
data/gfarm-2.7.17+dfsg/gftool/gfdf/gfdf.c:486: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 inode_availbuf[GFARM_INT64STRLEN];
data/gfarm-2.7.17+dfsg/gftool/gfdf/gfdf.c:577: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 capbuf[GFARM_INT64STRLEN];
data/gfarm-2.7.17+dfsg/gftool/gfdf/gfdf.c:578: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 usedbuf[GFARM_INT64STRLEN];
data/gfarm-2.7.17+dfsg/gftool/gfdf/gfdf.c:579: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 availbuf[GFARM_INT64STRLEN];
data/gfarm-2.7.17+dfsg/gftool/gfdump/gfdump.c:291:7:  [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(filename, "w");
data/gfarm-2.7.17+dfsg/gftool/gfdump/gfdump.c:477:7:  [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(filename, "r");
data/gfarm-2.7.17+dfsg/gftool/gffindxmlattr/gffindxmlattr.c:37: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(filename, O_RDONLY);
data/gfarm-2.7.17+dfsg/gftool/gffindxmlattr/gffindxmlattr.c:100: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).
			depth = atoi(optarg);
data/gfarm-2.7.17+dfsg/gftool/gfgetfacl/gfgetfacl.c:25: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 str[4];
data/gfarm-2.7.17+dfsg/gftool/gfhost/gfhost.c:306: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 *hostaliases[MAX_HOSTALIASES + 1];
data/gfarm-2.7.17+dfsg/gftool/gfhost/gfhost.c:398: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 line[LINE_BUFFER_SIZE];
data/gfarm-2.7.17+dfsg/gftool/gfhostgroup/gfhostgroup.c:31:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char program_name[PATH_MAX];
data/gfarm-2.7.17+dfsg/gftool/gfjournal/gfjournal.c:194: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[BUFSIZ];
data/gfarm-2.7.17+dfsg/gftool/gfkey/gfkey.c:69: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 shared_key[GFARM_AUTH_SHARED_KEY_LEN];
data/gfarm-2.7.17+dfsg/gftool/gfls/gfls.c:162: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 *namep, buffer[PATH_MAX * 2 + 1];
data/gfarm-2.7.17+dfsg/gftool/gfls/gfls.c:167: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(buffer, prefix, prefix_len);
data/gfarm-2.7.17+dfsg/gftool/gfls/gfls.c:176: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(namep, files[i], space);
data/gfarm-2.7.17+dfsg/gftool/gfls/gfls.c:199: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 value[DIRECTORY_QUOTA_SIZE];
data/gfarm-2.7.17+dfsg/gftool/gfls/gfls.c:275: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[100];
data/gfarm-2.7.17+dfsg/gftool/gfls/gfls.c:297: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[GFARM_INT64STRLEN];
data/gfarm-2.7.17+dfsg/gftool/gflsof/gflsof.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[BUF_LEN];
data/gfarm-2.7.17+dfsg/gftool/gfmv/gfmv.c:38: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(s, a->dstdir, a->dstdirlen);
data/gfarm-2.7.17+dfsg/gftool/gfncopy/gfncopy.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(root_url, url, i);
data/gfarm-2.7.17+dfsg/gftool/gfncopy/gfncopy.c:307: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).
			ncopy = atoi(ncopy_str);
data/gfarm-2.7.17+dfsg/gftool/gfncopy/gfncopy.c:668: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];
data/gfarm-2.7.17+dfsg/gftool/gfncopy/gfncopy.c:1000: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).
			opt_timeout = atoi(optarg);
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfarm_cmd.c:94: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[BUFSIZE];
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfarm_dirtree.c:398: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[64];
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfarm_dirtree.c:448:11:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		tmpfp = tmpfile();
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfarm_parallel.c:117: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 line[4096];
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfarm_parallel.c:132: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(&fdset_tmp, &fdset_orig, sizeof(fd_set));
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfarm_parallel.c:260: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("/dev/null", O_RDONLY);
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfarm_parallel.c:480: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(&fdset_tmp, &fdset_orig, sizeof(fd_set));
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfarm_pfunc.c:245: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(path, flags, mode);
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfprep.c:344: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 s[256];
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfprep.c:2024: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 done[n_conns]; /* 0:doing, 1:done, -1:end, locked by cb_mutex */
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfurl.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 buf[PATH_MAX];
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfurl.c:282:2:  [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(url, "//");
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfurl_local.c:131: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[bufsize];
data/gfarm-2.7.17+dfsg/gftool/gfquota/gfquota/gfquota.c:43: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[GFARM_INT64STRLEN];
data/gfarm-2.7.17+dfsg/gftool/gfreg/gfreg.c:78:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(filename, O_RDONLY)) == -1) {
data/gfarm-2.7.17+dfsg/gftool/gfreg/gfreg.c:170: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[GFS_FILE_BUFSIZE];
data/gfarm-2.7.17+dfsg/gftool/gfreg/gfreg.c:227: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 section[GFARM_INT32STRLEN + 1];
data/gfarm-2.7.17+dfsg/gftool/gfreg/gfreg.c:245: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(section, "%d", index);
data/gfarm-2.7.17+dfsg/gftool/gfreg/gfreg.c:433: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 cwdbf[PATH_MAX * 2];
data/gfarm-2.7.17+dfsg/gftool/gfreg/gfreg_simple.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 buffer[BUF_SIZE];
data/gfarm-2.7.17+dfsg/gftool/gfreg/gfreg_simple.c:144:10:  [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).
		ifd  = open(ifile, O_RDONLY);
data/gfarm-2.7.17+dfsg/gftool/gfrep/gfarm_list.c:74: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(&listp->array[ll], av, sizeof(void *) * al);
data/gfarm-2.7.17+dfsg/gftool/gfrep/gfarm_list.c:138: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(t, listp->array, sizeof(void *) * n);
data/gfarm-2.7.17+dfsg/gftool/gfrepcheck/gfrepcheck.c:68: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[BUFSIZE];
data/gfarm-2.7.17+dfsg/gftool/gfrepcheck/gfrepcheck.c:69: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 config[BUFSIZE];
data/gfarm-2.7.17+dfsg/gftool/gfrepcheck/gfrepcheck.c:107: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 config[BUFSIZE];
data/gfarm-2.7.17+dfsg/gftool/gfsetfacl/gfsetfacl.c:611:8:  [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(acl_file, "r");
data/gfarm-2.7.17+dfsg/gftool/gfspoolmd5/gfspoolmd5.c:147: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[BUFSIZE];
data/gfarm-2.7.17+dfsg/gftool/gfspoolmd5/gfspoolmd5.c:154: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 md_value[EVP_MAX_MD_SIZE];
data/gfarm-2.7.17+dfsg/gftool/gfspoolmd5/gfspoolmd5.c:164:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(file, O_RDONLY)) == -1)
data/gfarm-2.7.17+dfsg/gftool/gfspoolmd5/gfspoolmd5.c:263: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("/dev/null", O_WRONLY)) == -1) {
data/gfarm-2.7.17+dfsg/gftool/gfspoolmd5/gfspoolmd5.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 md_string[GFARM_MSGDIGEST_STRSIZE];
data/gfarm-2.7.17+dfsg/gftool/gfspoolmd5/gfspoolmd5.c:429:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(file, O_RDWR)) == -1) {
data/gfarm-2.7.17+dfsg/gftool/gfspoolmd5/gfspoolmd5.c:430:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fd = open(file, O_RDWR|O_CREAT|O_TRUNC, 0644)) == -1)
data/gfarm-2.7.17+dfsg/gftool/gfspoolmd5/gfspoolmd5.c:499: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).
			mtime_max_day = atoi(optarg) * 3600 * 24;
data/gfarm-2.7.17+dfsg/gftool/gfspoolmd5/gfspoolmd5.c:502: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).
			mtime_min_day = atoi(optarg) * 3600 * 24;
data/gfarm-2.7.17+dfsg/gftool/gfstat/gfstat.c:34:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char s[64];
data/gfarm-2.7.17+dfsg/gftool/gfusage/gfusage.c:45: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[GFARM_INT64STRLEN];
data/gfarm-2.7.17+dfsg/gftool/gfvoms-sync/gfvoms-update/gfvoms-update.c:408: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[MAX_LINE_LEN];
data/gfarm-2.7.17+dfsg/gftool/gfvoms-sync/gfvoms-update/gfvoms-update.c:814:12:  [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).
		vomsfp = fopen(vomsfile, "r");
data/gfarm-2.7.17+dfsg/gftool/gfwhere/gfwhere.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 *host[MAX_HOSTS];
data/gfarm-2.7.17+dfsg/gftool/gfwhere/gfwhere.c:240: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).
			opt.max_ncopy = atoi(optarg);
data/gfarm-2.7.17+dfsg/gftool/gfxattr/gfxattr.c:42: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(filename, O_RDONLY)) == -1) {
data/gfarm-2.7.17+dfsg/gftool/gfxattr/gfxattr.c:173:7:  [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(filename, "w");
data/gfarm-2.7.17+dfsg/include/gfarm/gfarm_iostat.h:27: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_name[GFARM_IOSTAT_NAME_MAX + 2];
data/gfarm-2.7.17+dfsg/include/gfarm/gfarm_iostat.h:30: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_name[GFARM_IOSTAT_NAME_MAX + 1];
data/gfarm-2.7.17+dfsg/include/gfarm/gfs.h:173: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_name[GFS_MAXNAMLEN + 1];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_client.c:100: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 shared_key[GFARM_AUTH_SHARED_KEY_LEN];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_client.c:101: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 challenge[GFARM_AUTH_CHALLENGE_LEN];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_client.c:102: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 response[GFARM_AUTH_RESPONSE_LEN];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_client.c:281: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 methods_buffer[GFARM_AUTH_METHODS_BUFFER_SIZE];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_client.c:418: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 shared_key[GFARM_AUTH_SHARED_KEY_LEN];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_client.c:568: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 challenge[GFARM_AUTH_CHALLENGE_LEN];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_client.c:569: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 response[GFARM_AUTH_RESPONSE_LEN];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_client.c:986: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 methods_buffer[GFARM_AUTH_METHODS_BUFFER_SIZE];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_common.c:142: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_URANDOM, O_RDONLY)) != -1) {
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_common.c:236:12:  [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(keyfilename, "r+")) == NULL) {
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_common.c:266:8:  [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).
		fp = fopen(keyfilename, "w+");
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_server.c:84: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 gfsd_shared_key_cache[GFARM_AUTH_SHARED_KEY_LEN];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_server.c:103: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(shared_key_expected, gfsd_shared_key_cache,
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_server.c:179: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 response_expected[GFARM_AUTH_RESPONSE_LEN];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_server.c:215: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 shared_key_expected[GFARM_AUTH_SHARED_KEY_LEN];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_server.c:270: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 challenge[GFARM_AUTH_CHALLENGE_LEN];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_server.c:271: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 response[GFARM_AUTH_RESPONSE_LEN];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_server.c:609: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 methods_buffer[CHAR_BIT * sizeof(gfarm_int32_t)];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/config.c:479: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[MAX_CONFIG_LINE_LENGTH + 1], *g_user, *l_user, *tmp;
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/config.c:490:14:  [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 ((map = fopen(mapfile, "r")) == NULL) {
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/config.c:923:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *gfarm_spool_root[GFARM_SPOOL_ROOT_NUM];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/config.c:3060: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 *argv[MAX_DEBUG_COMMAND_LENGTH], *arg, *diag = "debug_command";
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/config.c:3107: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(staticp->debug_command_argv, argv,
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/config.c:3208: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).
	config = fopen(s, "r");
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/config.c:3695: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, *p, buffer[MAX_CONFIG_LINE_LENGTH + 1];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/config.c:5124: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[MAX_CONFIG_LINE_LENGTH + 1];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/config_client.c:70:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((config = fopen(rc, "r")) == NULL) {
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/config_client.c:86:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((config = fopen(config_file, "r")) == NULL) {
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/config_server.c:34:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((config = fopen(config_file, "r")) == NULL) {
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/filesystem.c:334: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(servers, metadb_servers, sizeof(void *) * n);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfm_client.c:77: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 pid_key[GFM_PROTO_PROCESS_KEY_LEN_SHAREDSECRET];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfm_client.c:279: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[NI_MAXSERV];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfm_client.c:4512: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(gfm_server->pid_key, sharedkey, sharedkey_size);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfp_xdr.c:278: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.
	struct { char c[8]; } nd;
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfp_xdr.c: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.
	struct { char c[8]; } nd;
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfp_xdr.c:599: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.
	struct { char c[8]; } nd;
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_acl.c:658: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 *s, sepstr[2];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_acl.c:773: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(*qual_p, text, (p - text));
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_acl.c:1315: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(buf + nowlen, src, size); \
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_client.c:1358: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 data[CMSG_SPACE(sizeof(*fdv) * GFSD_MAX_PASSING_FD)
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_client.c:2158: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(buf, gfs_rdma_get_local_gid(ctx), size);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_client.c:2224: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 server_gid[IBV_GID_SIZE];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_client.c:2395: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[GFS_STACK_BUFSIZE];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_client.c:2514: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 buffer[GFS_STACK_BUFSIZE];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_client.c:2842: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.
	struct { char c[8]; } nloadavg[3];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_client.c:3072: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 server_gid[IBV_GID_SIZE];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_client.c:3120: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, gfs_rdma_get_local_gid(ctx), size);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_dircache.c:285: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(values[i], attrvalues[i], attrsizes[i]);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_dircache.c:578: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(value, attrvalues[i], attrsizes[i]);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_dircache.c:720: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(value, data->attrvalues[i],
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_dirplusxattr.c:30: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 **attrnamebuf[DIRENTSPLUSXATTR_BUFCOUNT];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_io.h:11: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 cksum[
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_pio.c:326: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 md_string[GFARM_MSGDIGEST_STRSIZE];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_pio.c:338: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(gf->md.cksum, md_string, md_strlen);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_pio.c:565:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			e = gfs_replicate_to((char *)url, hosts[i], ports[i]);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_pio.c:902: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.
		unsigned char md_value[EVP_MAX_MD_SIZE];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_pio.c:1421: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(p, gf->buffer + gf->p, length);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_pio.c:1459: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(p, gf->buffer + gf->p, length);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_pio.c:1635: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(gf->buffer + gf->p, buffer, size);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_pio_local.c:307: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[COPYFILE_BUFSIZE];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_pio_remote.c:194: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(buf, buffer, bsize);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_pio_remote.c:329: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(buffer, buf, *lengthp);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_pio_section.c:296: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 md_value[EVP_MAX_MD_SIZE];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_pio_section.c:351: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 cksum[GFM_PROTO_CKSUM_MAXLEN], *tmp_type, *tmp_cksum;
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_pio_section.c:369: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(sum->cksum, cksum, len);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_pio_section.c:1189: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 section_string[GFARM_INT32STRLEN + 1];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_pio_section.c:1212:6:  [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(section_string, "%d", i);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_pio_section.c:1230: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(section_string, "%d", fragment_index);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_rdma.c:855: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->remote_gid, buf, sizeof(union ibv_gid));
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_realpath.c:81: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(b, p, len);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_xattr.c:333: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(value, v, s);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_xattr.c:465: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(list, l, s);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/glob.c:248:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path_buffer[GLOB_PATH_BUFFER_SIZE + 1];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/glob.c:277: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(p + 1, s, len);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/host.c:68: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 hostname[MAXHOSTNAMELEN + 1];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/host.c:222:4:  [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(staticp->hostname, "hostname-not-set");
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/host.c:501: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 ifcbuffer[IFCBUFFER_SIZE];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/host.c:613: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[128];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/host.c:699: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 *n, sbuf[NI_MAXSERV];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/host.c:738: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(peer_addr, res->ai_addr, sizeof(*peer_addr));
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/host.c:936: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 network[GFARM_HOSTSPEC_STRLEN];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/hostspec.c:30: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[1];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/hostspec.c:190:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			if (isdigit(((unsigned char *)end1p)[1]) &&
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/hostspec.c:325: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, name[NI_MAXHOST];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/hostspec.c:379: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[GFARM_SOCKADDR_STRLEN];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/hostspec.c:391: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(s, "%d.%d.%d.%d", a[0], a[1], a[2], a[3]);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/hostspec.c:401: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(s, "unknown address family %d", addr->sa_family);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/import_help.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 *e, **host_table, line[1024];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/import_help.c:44:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	} else if ((fp = fopen(config, "r")) == NULL) {
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/import_help.c:110: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(stab, size_table, sizeof(size_table[0]) * i);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/import_help.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 line[1024];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/import_help.c:189:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	} else if ((fp = fopen(filename, "r")) == NULL) {
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/io_fd.c:45:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hostbuf[NI_MAXHOST], *hostaddr_prefix, *hostaddr;
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/io_gfsl.c:87: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(data, &io->buffer[io->p], rv);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/io_gfsl.c:93: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(data, &io->buffer[io->p], rv);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/iobuffer.c:365: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(b->buffer + b->tail, data, iolen);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/iobuffer.c:475: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(data, b->buffer + b->head, iolen);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/iostat.c:106: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_CREAT|O_TRUNC|O_RDWR, 0644)) < 0) {
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/liberror.c:22: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 *errcode_string[GFARM_ERR_NUMBER] = {
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/liberror.c:152: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 *errmsg_string[GFARM_ERRMSG_END - GFARM_ERRMSG_BEGIN] = {
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/lookup.c:69: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(hostname, path, p - path);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/lookup.c:436: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(p, n, i);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/repattr.c:44:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	(void)memcpy((gfarm_hash_entry_data(e)),	\
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/repattr.c:350: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 *tokens2[3];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/schedule.c:2265: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 addr[GFARM_HOSTSPEC_STRLEN];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/schedule.c:2291: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 hostbuf[80];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/schedule.c:2292: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 rttbuf[80];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/schedule.c:2293: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 loadbuf[80];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/schedule.c:2294: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 diskbuf[80];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/schedule.c:2295: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 diskusedbuf[GFARM_INT64STRLEN];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/schedule.c:2296: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 disktotalbuf[GFARM_INT64STRLEN];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/schedule.c:2645: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 section[GFARM_INT32STRLEN + 1];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/schedule.c:2660: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(section, "%d", i);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/stringlist.c:79: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(&listp->array[ll], av, sizeof(char *) * al);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/stringlist.c:150: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(t, listp->array, sizeof(char *) * n);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/auth.c:279:7:  [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(authFile, "r");
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/auth.c:325: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[65536];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/auth.c:358: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 *token[64];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/client2.c:71:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[4096];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/gsi.c:81: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(dP, stStr.value, stStr.length);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/gsi.c:173: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(user, nameValue, nameLength);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/gsi.c:356: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(ret, buf.value, buf.length);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/gsi.c:998: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(buf + sum, otPtr->value, otPtr->length);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/gsi.c:1085: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(env, env_name, sizeof(env_name) - 1);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/scarg.c:131:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[2048];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/server.c:74: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 myHostname[4096];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/server.c:147: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[NI_MAXHOST];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/session.c:188:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char lineBuf[65536];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/session.c:189: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 *token[64];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/session.c:200: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).
    fd = fopen(configFile, "r");
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/session.c:270: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((void *)ssOptPtr, (void *)&ssTmp, sizeof(gfarmSecSessionOption));
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/session.c:292:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	(void)memcpy((void *)canPtr, (void *)dPtr, sizeof(gfarmSecSessionOption));
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/session.c:1486: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((void *)&tmp, (void *)lbPtr, GFARM_OCTETS_PER_32BIT);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/session.c:1563: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((void *)&tmp, (void *)lbPtr, GFARM_OCTETS_PER_16BIT);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/tcputil.c:45: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 sbuf[NI_MAXSERV];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/tcputil.c:99: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 sbuf[NI_MAXSERV];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/tcputil.c:154:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char hbuf[NI_MAXHOST];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/tcputil.c:208: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 hostbuf[NI_MAXHOST], *hostaddr_prefix, *hostaddr;
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/daemon.c:38: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).
		int fd = open("/dev/null", O_RDWR, 0);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/gfevent.c:767: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 buf[1];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/hash.c:25: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.
		hash = (hash << 4) + ((unsigned char *)key)[i];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/hash.c:42:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		hash = (hash << 4) + tolower(((unsigned char *)key)[i]);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/hash.c:68:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		if (tolower(((unsigned char *)key1)[i]) !=
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/hash.c:69:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		    tolower(((unsigned char *)key2)[i]))
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/hash.c:219: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(HASH_KEY(p), key, keylen);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/id_table.c:653: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[1024], command[sizeof(buffer)];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/limit.c:57:12:  [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(SYSTEM_FS_FILE_MAX, "r")) == NULL) {
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/logutil.c:93: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 *gflog_priority_string[GFLOG_PRIORITY_SIZE];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/logutil.c:175: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[LOG_LENGTH_MAX];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/logutil.c:344: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[LOG_LENGTH_MAX];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/logutil.c:452: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(path, "a");
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/logutil.c:582: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[LOG_LENGTH_MAX];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/msgdigest.c:112: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(&md_string[i * 2], "%02x", md_value[i]);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/msgdigest.c:130: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 md_value[EVP_MAX_MD_SIZE];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/nanosec.c:87:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
utimens_common(const char *path, const struct timespec ts[2], int no_follow)
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/nanosec.c:118:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
gfarm_local_lutimens(const char *path, const struct timespec ts[2])
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/nanosec.c:125:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
gfarm_local_utimens(const char *path, const struct timespec ts[2])
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/nanosec.h:14:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int gfarm_local_lutimens(const char *, const struct timespec [2]);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/nanosec.h:15:31:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int gfarm_local_utimens(const char *, const struct timespec [2]);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/proctitle.c:70: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[PROCTITLE_BUFSIZE];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/proctitle.c:126: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[PROCTITLE_BUFSIZE];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/proctitle.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 buf[PROCTITLE_BUFSIZE];
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/proctitle.c:201: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[PROCTITLE_BUFSIZE];
data/gfarm-2.7.17+dfsg/linux/gfskd/gfskd.c:29: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  mount_buf[GFSK_BUF_SIZE + 128];
data/gfarm-2.7.17+dfsg/linux/gfskd/gfskd.c:311: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).
	} else if ((fd = open(map_file, O_RDONLY)) < 0) {
data/gfarm-2.7.17+dfsg/linux/gfskd/gfskd.c:381: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).
	mdatap->m_dfd = open(paramsp->dev_name, O_RDWR);
data/gfarm-2.7.17+dfsg/linux/gfskd/gfskd_proc.c:116: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 *)bufp, buf, len);
data/gfarm-2.7.17+dfsg/linux/include/gfsk_if.h: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	m_fsid[8];			/* out: file system id */
data/gfarm-2.7.17+dfsg/linux/include/gfsk_if.h:36: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	m_uidname[GFSK_MAX_USERNAME_LEN];
data/gfarm-2.7.17+dfsg/linux/include/gfsk_if.h: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	m_host[MAXHOSTNAMELEN];		/* connected host by m_fd */
data/gfarm-2.7.17+dfsg/linux/include/gfsk_if.h:40: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	m_opt[1];			/* option string */
data/gfarm-2.7.17+dfsg/linux/include/gfsk_if.h:70: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	r_hostname[MAXHOSTNAMELEN];
data/gfarm-2.7.17+dfsg/linux/include/gfsk_if.h:72: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	r_source_ip[GFSK_MAX_IPLEN];		/* optional */
data/gfarm-2.7.17+dfsg/linux/include/gfsk_if.h:75: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	r_global[GFSK_MAX_USERNAME_LEN];	/* global user name */
data/gfarm-2.7.17+dfsg/linux/include/gfsk_if.h:80: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	r_hostname[MAXHOSTNAMELEN];
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk.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	gk_uname[GFSK_USERNAME_MAX];
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_ccib.c:83:6:  [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.
	n = sprintf(buf, "wr_id=%lx num_sge=%d flag=%x sge0:%lx %d %x",
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_ccib.c:89:7:  [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.
		n = sprintf(buf + n, " sge1:%lx %d %x ",
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_ccib.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 buf[256];
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_ccib.c:172: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[128];
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_ccib.c:588: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 r_grhbuf[GFCC_UD_GRH];
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_ccib.c:610: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		q[GFCC_UD_MTU];
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_ccib.c:678: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[16];
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_ccib.c:679: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(str, "%d", wc->status);
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_ccib.c:790: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(&ctx->peer[i].ibaddr, ibaddr, sizeof(*ibaddr));
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_ccib.c:1099: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(rpc->r_magic, GFCC_RPC_MAGIC, strlen(GFCC_RPC_MAGIC));
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_ccib.c:1883: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 buf[128];
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_ccib.c:1968: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(rpc2->r2_ver, GFCC_RPC2_VER, strlen(GFCC_RPC2_VER));
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_ccib.h:9:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char devname[32];
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_ccib.h:15:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	struct {char raw[16]; } 	ca_gid;
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_dir.c:171:21:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	flags = nd->intent.open.flags;
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_dir.c:176: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).
					nd->intent.open.file, &inode);
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_dir.c:180:34:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	retval = gfarm_fstat(nd->intent.open.file, inode);
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_dir.c:182:37:  [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).
		gfarm_closefile(inode, nd->intent.open.file);
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_fd.c:119: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(fdpp, fdsp->fd_fdsetp, sizeof(fdp) * a);
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_file.c:157: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(kaddr + copied, taddr + poff, len);
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_file.c:389: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(addr, buf + (pos - off), len);
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_fs.h: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	gf_mnt_name[32];
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_if.c:428: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(gfsk_fsp->gf_mdata.m_host, mdatap->m_host,
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_libgfarm.c:86: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(p, ent->d_name.name, ent->d_name.len);
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_libgfarm.c:395: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 userbuf[UG_IDMAP_NAMESZ], groupbuf[UG_IDMAP_NAMESZ];
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_netdb.c:18: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 *tcp_alias[2] = {"TCP", NULL};
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_netdb.c:230: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, &addr[i], sizeof(struct in_addr));
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_stdlib.c:42:1:  [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).
fopen(const char *path, const char *mode)
data/gfarm-2.7.17+dfsg/linux/kernel/ug_idmap.c:111:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	      name[UG_IDMAP_NAMESZ];
data/gfarm-2.7.17+dfsg/linux/kernel/ug_idmap.c:112: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	      *alias[IDMAP_HOSTNAME_MAX + 1];
data/gfarm-2.7.17+dfsg/linux/kernel/ug_idmap.c:114: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[1];
data/gfarm-2.7.17+dfsg/linux/kernel/ug_idmap.c:250: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 abuf[128];
data/gfarm-2.7.17+dfsg/linux/kernel/ug_idmap.c:443: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[UG_IDMAP_NAMESZ];
data/gfarm-2.7.17+dfsg/linux/kernel/ug_idmap.c:501: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 idstr[11];
data/gfarm-2.7.17+dfsg/linux/kernel/ug_idmap.c:924: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(key.name, name, namelen);
data/gfarm-2.7.17+dfsg/linux/kernel/ug_idmap.c:947:11:  [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.
		return (sprintf(name, "%u", id));
data/gfarm-2.7.17+dfsg/linux/kernel/ug_idmap.c:952: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, item->name, ret < namelen ? ret : namelen);
data/gfarm-2.7.17+dfsg/linux/kernel/ug_proc.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 kbuf[UG_IDMAP_NAMESZ], name[UG_IDMAP_NAMESZ], *bufp = kbuf;
data/gfarm-2.7.17+dfsg/linux/kernel/ug_proc.c:75: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 kbuf[UG_IDMAP_NAMESZ], name[UG_IDMAP_NAMESZ], *bufp = kbuf, *bp;
data/gfarm-2.7.17+dfsg/linux/kernel/ug_proc.c:107: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 kbuf[UG_IDMAP_NAMESZ], name[UG_IDMAP_NAMESZ], *bufp = kbuf;
data/gfarm-2.7.17+dfsg/linux/kernel/usr/stdio.h:12:14:  [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).
extern FILE *fopen(const char *name, const char *mode);
data/gfarm-2.7.17+dfsg/linux/ugidmapd/idmapd.c:45:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char      im_name[UG_IDMAP_NAMESZ];
data/gfarm-2.7.17+dfsg/linux/ugidmapd/idmapd.c:124: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 stime[20];
data/gfarm-2.7.17+dfsg/linux/ugidmapd/idmapd.c:126: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(stime, "%ld\n", now);
data/gfarm-2.7.17+dfsg/linux/ugidmapd/idmapd.c:127: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_RDWR);
data/gfarm-2.7.17+dfsg/linux/ugidmapd/idmapd.c:218: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 ((ic->ic_fd = open(ic->ic_path, O_RDWR, 0)) == -1) {
data/gfarm-2.7.17+dfsg/linux/ugidmapd/idmapd.c:266: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[MAXBUFLEN];
data/gfarm-2.7.17+dfsg/linux/ugidmapd/idmapd.c:298: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[MAXBUFLEN];
data/gfarm-2.7.17+dfsg/linux/ugidmapd/idmapd.c:461: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).
		tempfd = open("/dev/null", O_RDWR);
data/gfarm-2.7.17+dfsg/linux/ugidmapd/idmapd.c:463: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).
			tempfd = open("/", O_RDONLY);
data/gfarm-2.7.17+dfsg/linux/ugidmapd/idmapd.c:545: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, typebuf[IDMAP_MAXMSGSZ],
data/gfarm-2.7.17+dfsg/linux/ugidmapd/idmapd.c:666: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[UGBUFSIZ], buf1[UGBUFSIZ];
data/gfarm-2.7.17+dfsg/linux/ugidmapd/idmapd.c:667: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, name[IDMAP_MAXMSGSZ];
data/gfarm-2.7.17+dfsg/linux/ugidmapd/idmapd.c:797:14:  [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).
		FILE *fp = fopen(pidfile, "w");
data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfarm_error_range_alloc/errmsg.c:70: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).
	printf("%s\n", gfarm_error_string(atoi(argv[1])));
data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfm_inode_or_name_op_test/gfm_inode_or_name_op_test.c:42: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[NAME_MAX];
data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfs_pio_stat/gfs_stat_pio_stat_consistency.c:56: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[BUFSIZ];
data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfs_pio_test/gfs_pio_test.c:56:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char buffer[IO_BUFSIZE];
data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfs_replicate_file_from_to_request/in_progress/in_progress.c:19:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const char buf[10];
data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfs_stat_cached/gfs_stat_cached_test.c:35: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 cmd[BUFSIZ];
data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfs_xattr/test_gfxattr.c:41: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(filename, O_RDONLY);
data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfs_xattr/test_gfxattr.c:126:7:  [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(filename, "w");
data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfutil/utf8/utf8_test.c:35: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 hexbuf[3];
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/benchmark.c:13: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 filename[1024];
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/benchmark.c:71: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 command[1024];
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/benchmark.c:88: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).
	int fd = open(filename, O_CREAT | O_RDWR, 0644);
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/benchmark.c:107: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).
	int fd = open(filename, O_RDWR);
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/benchmark.c:126: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).
	int fd = open(filename, O_RDONLY);
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/benchmark.c:145: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).
	int fd = open(filename, O_RDWR);
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/benchmark.c:168: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).
	int fd = open(filename, O_RDWR);
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/flock.c:18: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).
	int waitsec = atoi(argv[3]);
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/flock.c:33: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).
	int fd = open(filename, O_CREAT, 0644);
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/mmap.c:25: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).
	int fd = open(filename, O_CREAT | O_TRUNC | O_RDWR, 0644);
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/mmap.c:56: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 mreaddata[mmaplen + 1];
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/mmap.c:57: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(mreaddata, addr, mmaplen);
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/mmap.c:66: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(mreaddata + updateoffset, updatedata, strlen(updatedata));
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/mmap.c:67: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(addr, mreaddata, mmaplen);
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/mmap.c:70: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 preaddata[mmaplen + 1];
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/readwrite.c:16: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).
	int fd = open(filename, O_CREAT | O_TRUNC | O_RDWR, 0644);
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/readwrite.c:54: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(filename, O_RDWR);
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/readwrite.c:62:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char readdata[writelen + 1];
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/readwrite.c:89: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).
	int fd = open(filename, O_CREAT | O_TRUNC | O_RDWR, 0644);
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/readwrite.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(filename, O_APPEND | O_RDWR);
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/readwrite.c:146: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 readdata[filesize + 1];
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/readwrite.c:172: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).
	int fd = open(filename, O_CREAT | O_TRUNC | O_RDWR, 0644);
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/readwrite.c:201: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 readdata[writelen + 1];
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/readwrite.c:243: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 preaddata2[filesize + 1];
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/readwrite.c:275: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).
	int fd = open(filename, O_CREAT | O_TRUNC | O_RDWR, 0644);
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/readwrite.c:304: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 preaddata[writelen + 1];
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/readwrite.c:346: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 filedata[filesize + 1];
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/readwrite.c:349: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 preaddata2[filesize + 1];
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/truncate.c:22: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).
	int fd = open(filename, O_CREAT | O_TRUNC | O_RDWR, 0644);
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/truncate.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 readdata[writelen + 1];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:182: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 cmd[1024];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:202: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(b1, expected, len);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:203: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(b2, result, len);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:218: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[STR_BUFSIZE];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:340:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *path, paths[1][PATH_MAX];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:341: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 to_path[PATH_MAX];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:652:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.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 path[PATH_MAX];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:702: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 dst[PATH_MAX];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:723: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 dst[PATH_MAX];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:744:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:764:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:936: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[STR_BUFSIZE];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:1083: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[STR_BUFSIZE];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:1155: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 localtmp[PATH_MAX];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:1159: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).
		lfd[i] = open(localtmp, O_RDWR|O_CREAT|O_TRUNC, 0777);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:1222:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[NUM_FILES][PATH_MAX];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:1262:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[NUM_FILES][PATH_MAX];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:1264: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).
	lfd = open(local_path, O_RDONLY);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:1316: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[STR_BUFSIZE];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:1344: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).
	lfd = open(local_path, O_RDWR|O_CREAT|O_TRUNC, 0777);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:1369:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:1401:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:1431: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).
	lfd = open(local_path, O_RDONLY);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:1465: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).
	lfd = open(local_path, O_RDONLY);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:1491:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:1715: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[STR_BUFSIZE];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:1745: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).
	lfd = open(local_path, O_RDWR|O_CREAT|O_TRUNC, 0777);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:1851:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[NUM_FILES][PATH_MAX];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:1873:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[NUM_FILES][PATH_MAX];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:1905:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[NUM_FILES][PATH_MAX];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:1926:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[NUM_FILES][PATH_MAX];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:1947:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[NUM_FILES][PATH_MAX];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:1968:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[NUM_FILES][PATH_MAX];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:1989: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[STR_BUFSIZE];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2033: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 localtmp0[PATH_MAX], localtmp1[PATH_MAX];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2041: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).
	lfd0 = open(localtmp0, O_RDWR|O_CREAT|O_TRUNC, 0777);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2045: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).
	lfd1 = open(localtmp1, O_RDWR|O_CREAT|O_TRUNC, 0777);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2096: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).
	int tmlimit = atoi(argv[1]);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2097: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).
	int files = atoi(argv[2]);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2098: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).
	int blocks = atoi(argv[3]);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2100: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 cmd[256];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2105: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[WRITE_LOOP_BUFSZ];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2235: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).
	int tmlimit = atoi(argv[2]);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2236: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).
	int files = atoi(argv[3]);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2237: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).
	int blocks = atoi(argv[4]);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2240: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 cmd[256];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2250: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).
	lfd = open(local_path, O_RDONLY);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2255:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	path = (char **)malloc(files * sizeof(path[0]));
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2380: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 val[STR_BUFSIZE];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2459: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[STR_BUFSIZE], val[STR_BUFSIZE];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2465: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(val, val0, sz);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2501: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[STR_BUFSIZE], val[STR_BUFSIZE];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2511: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(val, val0, sz);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2552: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 val[STR_BUFSIZE];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2596: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[STR_BUFSIZE], val[STR_BUFSIZE] = TEXT1;
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2623: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 names[STR_BUFSIZE * 10];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2772: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 *hosts[1];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2882:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *path = (char *)argv[0], *host = (char *)argv[1];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2882: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.
	char *path = (char *)argv[0], *host = (char *)argv[1];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2883: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).
	int port = atoi(argv[2]);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2903:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *path = (char *)argv[0];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2904: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.
	char *shost = (char *)argv[1], *dhost = (char *)argv[3];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2904:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *shost = (char *)argv[1], *dhost = (char *)argv[3];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2905: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).
	int sport = atoi(argv[2]), dport = atoi(argv[4]);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2905:37:  [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).
	int sport = atoi(argv[2]), dport = atoi(argv[4]);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2926:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *path = (char *)argv[0], *host = (char *)argv[1];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2926: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.
	char *path = (char *)argv[0], *host = (char *)argv[1];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2946:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *path = (char *)argv[0];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2947: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.
	char *shost = (char *)argv[1], *dhost = (char *)argv[2];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2947:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *shost = (char *)argv[1], *dhost = (char *)argv[2];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2969:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *path = (char *)argv[0], *host = (char *)argv[1];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2969: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.
	char *path = (char *)argv[0], *host = (char *)argv[1];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2989:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *path = (char *)argv[0], *host = (char *)argv[1];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2989: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.
	char *path = (char *)argv[0], *host = (char *)argv[1];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2990: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).
	int port = atoi(argv[2]);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:3010:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *path = (char *)argv[0];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:3011: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.
	char *shost = (char *)argv[1], *dhost = (char *)argv[3];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:3011:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *shost = (char *)argv[1], *dhost = (char *)argv[3];
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:3012: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).
	int sport = atoi(argv[2]), dport = atoi(argv[4]);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:3012:37:  [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).
	int sport = atoi(argv[2]), dport = atoi(argv[4]);
data/gfarm-2.7.17+dfsg/regress/manual/server/gfsd/fo_notify_test/fo_notify_test.c:54:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[GFS_UDP_RPC_SIZE_MAX], *p = buffer;
data/gfarm-2.7.17+dfsg/regress/manual/server/gfsd/fo_notify_test/fo_notify_test.c:59: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, &u32, sizeof(u32)); p += sizeof(u32);
data/gfarm-2.7.17+dfsg/regress/manual/server/gfsd/fo_notify_test/fo_notify_test.c:62: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, &u32, sizeof(u32)); p += sizeof(u32);
data/gfarm-2.7.17+dfsg/regress/manual/server/gfsd/fo_notify_test/fo_notify_test.c:65: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, &u32, sizeof(u32)); p += sizeof(u32);
data/gfarm-2.7.17+dfsg/regress/manual/server/gfsd/fo_notify_test/fo_notify_test.c:68: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, &u32, sizeof(u32)); p += sizeof(u32);
data/gfarm-2.7.17+dfsg/regress/manual/server/gfsd/fo_notify_test/fo_notify_test.c:70: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, &u32, sizeof(u32)); p += sizeof(u32);
data/gfarm-2.7.17+dfsg/regress/manual/server/gfsd/fo_notify_test/fo_notify_test.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(p, &u32, sizeof(u32)); p += sizeof(u32);
data/gfarm-2.7.17+dfsg/regress/manual/server/gfsd/fo_notify_test/fo_notify_test.c:84: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, &u32, sizeof(u32)); p += sizeof(u32);
data/gfarm-2.7.17+dfsg/regress/manual/server/gfsd/fo_notify_test/fo_notify_test.c:86: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, new_master_host, namelen); p += namelen;
data/gfarm-2.7.17+dfsg/regress/manual/server/gfsd/fo_notify_test/fo_notify_test.c:89: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, &u32, sizeof(u32)); p += sizeof(u32);
data/gfarm-2.7.17+dfsg/regress/server/gfmd/db_journal/db_journal_test.c:120:7:  [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).
	fp = fopen(path, "w");
data/gfarm-2.7.17+dfsg/regress/server/gfmd/db_journal/db_journal_test.c:253: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 msg[BUFSIZ];
data/gfarm-2.7.17+dfsg/regress/server/gfmd/db_journal/db_journal_test.c:314: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(msg, "db_journal_read (i=%d)", i);
data/gfarm-2.7.17+dfsg/regress/server/gfmd/db_journal/db_journal_test.c:342: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(msg, "db_journal_read (i=%d)", i);
data/gfarm-2.7.17+dfsg/regress/server/gfmd/db_journal/db_journal_test.c:3559: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 msg[BUFSIZ];
data/gfarm-2.7.17+dfsg/regress/server/gfmd/db_journal/db_journal_test.h:25: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 assertbuf[BUFSIZ]; \
data/gfarm-2.7.17+dfsg/regress/server/gfmd/db_journal/db_journal_test.h:34: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 assertbuf[BUFSIZ]; \
data/gfarm-2.7.17+dfsg/regress/server/gfmd/db_journal/db_journal_test.h:44: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 assertbuf[BUFSIZ]; \
data/gfarm-2.7.17+dfsg/regress/server/gfmd/db_journal/db_journal_test.h:53: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 assertbuf[BUFSIZ]; \
data/gfarm-2.7.17+dfsg/server/gfmd/back_channel.c:642: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 cksum[GFM_PROTO_CKSUM_MAXLEN];
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:654:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	(void)memcpy((void *)(arg->hostname), (void *)hostname, hsize);
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:656:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		(void)memcpy((void *)(arg->fsngroupname),
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.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(arg->sum, sum, len);
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:1483: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(arg->entry_name, entry_name, entry_len);
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:1639: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(arg->value, value, valsize);
data/gfarm-2.7.17+dfsg/server/gfmd/db_journal.c:197:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[MAXPATHLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_journal.c:4310: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(p, fi->rec, fi->rec_len);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:596: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[2];
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:999: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(infos + ops->gen_ops->info_size * i, tmp_info,
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1264: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 port_string[INT32STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1265: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 ncpu_string[INT32STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1266: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 flags_string[INT32STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1274: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(port_string, "%d", info->port);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1275: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(ncpu_string, "%d", info->ncpu);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1276: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(flags_string, "%d", info->flags);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1786: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 ino_string[INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1787: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 igen_string[INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1788: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 mode_string[INT32STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1789: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 nlink_string[INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1790: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 size_string[INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1791: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 atime_sec_string[INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1792: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 atime_nsec_string[INT32STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1793: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 mtime_sec_string[INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1794: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 mtime_nsec_string[INT32STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1795: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 ctime_sec_string[INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1796: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 ctime_nsec_string[INT32STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1804: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(mode_string, "%07o", info->st_mode);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1808: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(atime_nsec_string, "%d", info->st_atimespec.tv_nsec);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1810: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(mtime_nsec_string, "%d", info->st_mtimespec.tv_nsec);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1812: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(ctime_nsec_string, "%d", info->st_ctimespec.tv_nsec);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1892: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 ino_string[INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1893: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 uint64_string[INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1925: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 ino_string[INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1957: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 ino_string[INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1958: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 sec_string[INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1959: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 nsec_string[INT32STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1967: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(nsec_string, "%d", arg->time.tv_nsec);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2017: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 ino_string[INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2018: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 mode_string[INT32STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2025: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(mode_string, "%07o", arg->uint32);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2288: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 ino_string[INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2455: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 ino_string[INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2456: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 igen_string[INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2668: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 ino_string[INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2669: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 entry_ino_string[INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2951: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(info->attrvalue, bervals[0]->bv_val,
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2973: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 ino_string[INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:3046: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 *attrs[2] = { "attrvalue", NULL };
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:3114: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(p, vals[0]->bv_val,
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:209: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 *varvalues[GFARM_ARRAY_LENGTH(varnames)];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:354: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, *size);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:1129: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(&(data), buf, sizeof(data)); \
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:1165: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, *bufp, len);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:1248:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const char binary_signature[COPY_BINARY_SIGNATURE_LEN] =
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:1556: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 *paramValues[1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:1573: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 *paramValues[2];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:1609: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 *paramValues[5];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:1611: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 port[GFARM_INT32STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:1612: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 ncpu[GFARM_INT32STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:1613: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 flags[GFARM_INT32STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:1621: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(port, "%d", info->port);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:1624: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(ncpu, "%d", info->ncpu);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:1626: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(flags, "%d", info->flags);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:1687: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 *paramValues[1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:1705: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 *paramValues[1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:1724: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 *paramValues[1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:1844: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 *paramValues[2];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:1881: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 *paramValues[4];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:1933: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 *paramValues[1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2008: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 *paramValues[1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2025: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 *paramValues[2];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2057: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 *paramValues[1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2117: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 *paramValues[1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2178: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 *paramValues[13];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2179: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 inumber[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2180: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 igen[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2181: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 nlink[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2182: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 size[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2183: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 mode[GFARM_INT32STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2184: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 atimesec[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2185: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 atimensec[GFARM_INT32STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2186: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 mtimesec[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2187: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 mtimensec[GFARM_INT32STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2188: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 ctimesec[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2189: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 ctimensec[GFARM_INT32STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2199: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(mode, "%d", info->st_mode);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2205: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(atimensec, "%d", info->st_atimespec.tv_nsec);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2209: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(mtimensec, "%d", info->st_mtimespec.tv_nsec);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2213: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(ctimensec, "%d", info->st_ctimespec.tv_nsec);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2266: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 *paramValues[2];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2267: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 inumber[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2268: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 uint64[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2296: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 *paramValues[2];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2297: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 inumber[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2298: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 uint32[GFARM_INT32STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2302: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(uint32, "%d", arg->uint32);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2326: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 *paramValues[2];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2327: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 inumber[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2354: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 *paramValues[3];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2355: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 inumber[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2356: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 sec[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2357: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 nsec[GFARM_INT32STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2363: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(nsec, "%d", arg->time.tv_nsec);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2520: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 *paramValues[3];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2521: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 inumber[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2547: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 *paramValues[1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2548: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 inumber[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2644: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 *paramValues[2];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2645: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 inumber[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2759: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 *paramValues[3];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2760: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 inumber[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2761: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 igen[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2883: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 *paramValues[3];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2884: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 dir_inumber[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2885: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 entry_inumber[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2912: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 *paramValues[2];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2913: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 dir_inumber[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2979: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 *paramValues[2];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2980: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 inumber[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3061: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 *paramValues[3];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3065: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 inumber[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3118: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 *paramValues[3];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3122: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 inumber[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3176: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 *paramValues[2];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3178: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 inumber[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3222: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 *paramValues[1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3223: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 inumber[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3300: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 *paramValues[2];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3301: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 inumber[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3423: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 *paramValues[2];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3424: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 inumber[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3469: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 *paramValues[18];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3472: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 grace_period[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3473: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 space[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3474: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 space_exceed[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3475: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 space_soft[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3476: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 space_hard[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3477: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 num[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3478: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 num_exceed[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3479: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 num_soft[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3480: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 num_hard[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3481: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 phy_space[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3482: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 phy_space_exceed[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3483: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 phy_space_soft[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3484: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 phy_space_hard[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3485: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 phy_num[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3486: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 phy_num_exceed[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3487: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 phy_num_soft[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3488: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 phy_num_hard[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3605: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 *paramValues[1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3689: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 *paramValues[19];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3691: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 grace_period[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3692: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 space[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3693: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 space_exceed[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3694: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 space_soft[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3695: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 space_hard[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3696: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 num[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3697: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 num_exceed[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3698: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 num_soft[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3699: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 num_hard[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3700: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 phy_space[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3701: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 phy_space_exceed[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3702: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 phy_space_soft[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3703: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 phy_space_hard[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3704: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 phy_num[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3705: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 phy_num_exceed[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3706: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 phy_num_soft[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3707: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 phy_num_hard[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3802: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 *paramValues[2];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3892: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 *paramValues[3];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3893: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 inumber[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3929: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 *paramValues[1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3930: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 inumber[GFARM_INT64STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3996: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 *paramValues[2];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3997: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 value[GFARM_INT32STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:4045: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 *paramValues[1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:4074: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 *paramValues[1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:4145: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 *paramValues[4];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:4147: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 port[GFARM_INT32STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:4148: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 flags[GFARM_INT32STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:4156: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(port, "%d", info->port);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:4159: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(flags, "%d", info->flags);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:4215: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 *paramValues[1];
data/gfarm-2.7.17+dfsg/server/gfmd/dir.c:186: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(entry->key, name, namelen);
data/gfarm-2.7.17+dfsg/server/gfmd/dir.c:378: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(newname, name, namelen);
data/gfarm-2.7.17+dfsg/server/gfmd/failover_notify.c:37:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[GFS_UDP_RPC_SIZE_MAX], *p = buffer;
data/gfarm-2.7.17+dfsg/server/gfmd/failover_notify.c:46: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, &u32, sizeof(u32)); p += sizeof(u32);
data/gfarm-2.7.17+dfsg/server/gfmd/failover_notify.c:49: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, &u32, sizeof(u32)); p += sizeof(u32);
data/gfarm-2.7.17+dfsg/server/gfmd/failover_notify.c:52: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, &u32, sizeof(u32)); p += sizeof(u32);
data/gfarm-2.7.17+dfsg/server/gfmd/failover_notify.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(p, xid, GFS_UDP_RPC_XID_SIZE);
data/gfarm-2.7.17+dfsg/server/gfmd/failover_notify.c:58: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, &u32, sizeof(u32)); p += sizeof(u32);
data/gfarm-2.7.17+dfsg/server/gfmd/failover_notify.c:69: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, &u32, sizeof(u32)); p += sizeof(u32);
data/gfarm-2.7.17+dfsg/server/gfmd/failover_notify.c:71: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, gfarm_ctxp->metadb_server_name, namelen); p += namelen;
data/gfarm-2.7.17+dfsg/server/gfmd/failover_notify.c:74: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, &u32, sizeof(u32)); p += sizeof(u32);
data/gfarm-2.7.17+dfsg/server/gfmd/failover_notify.c:97: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 buffer[GFS_UDP_RPC_SIZE_MAX], *p = buffer;
data/gfarm-2.7.17+dfsg/server/gfmd/failover_notify.c:179: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 xid[GFS_UDP_RPC_XID_SIZE];
data/gfarm-2.7.17+dfsg/server/gfmd/failover_notify.c:329: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[NI_MAXSERV];
data/gfarm-2.7.17+dfsg/server/gfmd/failover_notify.c:330: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 addr_string[GFARM_SOCKADDR_STRLEN];
data/gfarm-2.7.17+dfsg/server/gfmd/fs.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 tmp_str[BUFSIZE_MAX];
data/gfarm-2.7.17+dfsg/server/gfmd/fs.c:1616: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(cksumbuf, cksum, cksum_len);
data/gfarm-2.7.17+dfsg/server/gfmd/fs.c:1638: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 cksum[GFM_PROTO_CKSUM_MAXLEN];
data/gfarm-2.7.17+dfsg/server/gfmd/fs.c:3741: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 *cksum_type, cksum[GFM_PROTO_CKSUM_MAXLEN];
data/gfarm-2.7.17+dfsg/server/gfmd/fs.c:4655: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 cksum[GFM_PROTO_CKSUM_MAXLEN];
data/gfarm-2.7.17+dfsg/server/gfmd/fs.c:4745: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 cksum[GFM_PROTO_CKSUM_MAXLEN];
data/gfarm-2.7.17+dfsg/server/gfmd/fs.c:5004: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 cksum[GFM_PROTO_CKSUM_MAXLEN];
data/gfarm-2.7.17+dfsg/server/gfmd/fs.c:5520: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(cksumbuf, cksum, cksum_len);
data/gfarm-2.7.17+dfsg/server/gfmd/fs.c:5542: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 cksum[GFM_PROTO_CKSUM_MAXLEN];
data/gfarm-2.7.17+dfsg/server/gfmd/gfmd.c:987: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 addr_string[GFARM_SOCKADDR_STRLEN];
data/gfarm-2.7.17+dfsg/server/gfmd/gfmd.c:1152: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).
	pid_fp = fopen(pid_file, "w");
data/gfarm-2.7.17+dfsg/server/gfmd/gfmd.c:1291: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).
	config = fopen(s, "r");
data/gfarm-2.7.17+dfsg/server/gfmd/gfmd.c:1314: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, *p, buffer[MAX_CONFIG_LINE_LENGTH + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/gfmd.c:1346:17:  [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).
	FILE *config = fopen(file, "r");
data/gfarm-2.7.17+dfsg/server/gfmd/gfmd.c:2039: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(iostat_dirbuf, "/gfmd");
data/gfarm-2.7.17+dfsg/server/gfmd/host.c:1446:12:  [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).
	host_fp = fopen("host", "w");
data/gfarm-2.7.17+dfsg/server/gfmd/inode.c:151: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 sum[1];
data/gfarm-2.7.17+dfsg/server/gfmd/inode.c:349: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(cs->sum, cksum, cksum_len);
data/gfarm-2.7.17+dfsg/server/gfmd/inode.c:367: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(cs->sum, cksum, cksum_len);
data/gfarm-2.7.17+dfsg/server/gfmd/inode.c:3749: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 name[16 + 16 + 1];
data/gfarm-2.7.17+dfsg/server/gfmd/inode.c:3791: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[16 + 16 + GFARM_HOST_NAME_MAX + 2];
data/gfarm-2.7.17+dfsg/server/gfmd/inode.c:4997:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp_str[4096];
data/gfarm-2.7.17+dfsg/server/gfmd/inode.c:5333: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(s, name, namelen);
data/gfarm-2.7.17+dfsg/server/gfmd/inode.c:6699: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(cksumbuf, cksum, cksum_len);
data/gfarm-2.7.17+dfsg/server/gfmd/inode.c:7077: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(ename, entry_name, entry_len);
data/gfarm-2.7.17+dfsg/server/gfmd/inode.c:7892: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(entry->cached_attrvalue, value, size);
data/gfarm-2.7.17+dfsg/server/gfmd/inode.c:8051: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(entry->cached_attrvalue, value, size);
data/gfarm-2.7.17+dfsg/server/gfmd/inode.c:8102: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(r, entry->cached_attrvalue, entry->cached_attrsize);
data/gfarm-2.7.17+dfsg/server/gfmd/inode.c:8229:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
						memcpy(list[i].value,
data/gfarm-2.7.17+dfsg/server/gfmd/inode.c:8309: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(p, entry->name, len);
data/gfarm-2.7.17+dfsg/server/gfmd/journal_file.c:515: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(data, np, sizeof(*np));
data/gfarm-2.7.17+dfsg/server/gfmd/journal_file.c:538: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[JOURNAL_BUFSIZE];
data/gfarm-2.7.17+dfsg/server/gfmd/journal_file.c:902: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 magic[GFARM_JOURNAL_MAGIC_SIZE];
data/gfarm-2.7.17+dfsg/server/gfmd/journal_file.c:1256: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(header, GFARM_JOURNAL_FILE_MAGIC, GFARM_JOURNAL_MAGIC_SIZE);
data/gfarm-2.7.17+dfsg/server/gfmd/journal_file.c:1257: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(header + GFARM_JOURNAL_MAGIC_SIZE, (void *) &version,
data/gfarm-2.7.17+dfsg/server/gfmd/journal_file.c:1442: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).
		wfd = open(path, O_CREAT|O_WRONLY, S_IRUSR|S_IWUSR);
data/gfarm-2.7.17+dfsg/server/gfmd/journal_file.c:1455: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).
	rfd = open(path, O_RDONLY);
data/gfarm-2.7.17+dfsg/server/gfmd/journal_file.c:1564: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(jf->path, O_RDONLY);
data/gfarm-2.7.17+dfsg/server/gfmd/journal_file.c:1829: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 magic[GFARM_JOURNAL_MAGIC_SIZE];
data/gfarm-2.7.17+dfsg/server/gfmd/journal_file.c:2021: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 header[64], *rec = NULL;
data/gfarm-2.7.17+dfsg/server/gfmd/journal_file.c:2091: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(rec, header, header_size);
data/gfarm-2.7.17+dfsg/server/gfmd/peer.c:982: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 hostbuf[NI_MAXHOST];
data/gfarm-2.7.17+dfsg/server/gfmd/process.c:55:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sharedkey[GFM_PROTO_PROCESS_KEY_LEN_SHAREDSECRET];
data/gfarm-2.7.17+dfsg/server/gfmd/process.c:184: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(process->sharedkey, sharedkey, keylen);
data/gfarm-2.7.17+dfsg/server/gfmd/process.c:560: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(s, key, keylen);
data/gfarm-2.7.17+dfsg/server/gfmd/process.c:1402: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(cksum, cksump, cksum_len);
data/gfarm-2.7.17+dfsg/server/gfmd/process.c:1587: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 sharedkey[GFM_PROTO_PROCESS_KEY_LEN_SHAREDSECRET];
data/gfarm-2.7.17+dfsg/server/gfmd/process.c:1627: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 parent_sharedkey[GFM_PROTO_PROCESS_KEY_LEN_SHAREDSECRET];
data/gfarm-2.7.17+dfsg/server/gfmd/process.c:1628: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 sharedkey[GFM_PROTO_PROCESS_KEY_LEN_SHAREDSECRET];
data/gfarm-2.7.17+dfsg/server/gfmd/process.c:1684: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 sharedkey[GFM_PROTO_PROCESS_KEY_LEN_SHAREDSECRET];
data/gfarm-2.7.17+dfsg/server/gfmd/user.c:493: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, value, size);
data/gfarm-2.7.17+dfsg/server/gfmd/xattr.c:501: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.
		if (((char *)value)[size-1] != '\0') {
data/gfarm-2.7.17+dfsg/server/gfmd/xattr.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(subpath + pathlen, name, namelen);
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:235: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(&iostat_dirbuf[iostat_dirlen], "gfsd");
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:237: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(&iostat_dirbuf[iostat_dirlen], "bcs");
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:239: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(&iostat_dirbuf[iostat_dirlen], "wv");
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:419: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[2048];
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:464: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[2048];
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:587: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 dummy[1];
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:606: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 dummy[1];
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:1005: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 data[CMSG_SPACE(sizeof(*fdv) * GFSD_MAX_PASSING_FD)
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:1303: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 sharedkey[GFM_PROTO_PROCESS_KEY_LEN_SHAREDSECRET];
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:1338: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 sharedkey[GFM_PROTO_PROCESS_KEY_LEN_SHAREDSECRET];
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:1418: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).
	int fd = open(path, flags, DATA_FILE_MASK);
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:1428: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, flags, DATA_FILE_MASK);
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:1479: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 md_string[GFARM_MSGDIGEST_STRSIZE];
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:1754: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(fe->md_string, cksum, cksum_len);
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:1802: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 time_buf[26], *t, *te;
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:1829: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.
		unsigned char md_value[EVP_MAX_MD_SIZE];
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:2184: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[COPY_BLOCK_SIZE], *path;
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:2300: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 *cksum_type, tmp_cksum[GFM_PROTO_CKSUM_MAXLEN];
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:2354: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(cksum, tmp_cksum, cksum_len);
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:2766: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 md_value[EVP_MAX_MD_SIZE];
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:2849: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 md_string[GFARM_MSGDIGEST_STRSIZE];
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:2863: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(fe->md_string, md_string, md_strlen);
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:3339: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 buffer[GFS_PROTO_MAX_IOSIZE];
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:3415: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 buffer[GFS_PROTO_MAX_IOSIZE];
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:3490: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[GFS_PROTO_MAX_IOSIZE];
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:3734: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 md_value[EVP_MAX_MD_SIZE];
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:3859: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_buf[DATA_BUFSIZE];
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:4122: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 req_cksum[GFM_PROTO_CKSUM_MAXLEN];
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:4128: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 md_string[GFARM_MSGDIGEST_STRSIZE];
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:4133: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 src_cksum[GFM_PROTO_CKSUM_MAXLEN];
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:4291: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 cksum[GFM_PROTO_CKSUM_MAXLEN];
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:4295: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 md_string[GFARM_MSGDIGEST_STRSIZE];
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:4623: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 cksum[GFM_PROTO_CKSUM_MAXLEN];
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:4649: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 cksum[GFM_PROTO_CKSUM_MAXLEN];
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:4667: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 md_string[GFARM_MSGDIGEST_STRSIZE];
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:4669: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 src_cksum[GFM_PROTO_CKSUM_MAXLEN];
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:4768: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(res->recv_cksum.cksum, src_cksum,
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:4773: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(res->recv_cksum.cksum, md_string,
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:4996: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 cksum[GFM_PROTO_CKSUM_MAXLEN];
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:5068: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(rep->cksum, cksum, cksum_len);
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:5107: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 buffer[IBV_GID_SIZE], *gid = buffer;
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:5616: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 *aux, addr_string[GFARM_SOCKADDR_STRLEN];
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:5862: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 buffer[GFS_UDP_RPC_SIZE_MAX], *p = buffer;
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:5865: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, &u32, sizeof(u32)); p += sizeof(u32);
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:5868: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, &u32, sizeof(u32)); p += sizeof(u32);
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:5871: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, &u32, sizeof(u32)); p += sizeof(u32);
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:5873: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, xid, GFS_UDP_RPC_XID_SIZE);
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:5877: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, &u32, sizeof(u32)); p += sizeof(u32);
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:5880: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, &u32, sizeof(u32)); p += sizeof(u32);
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:5909: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 got_master_name[GFARM_MAXHOSTNAMELEN + 1];
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:5939: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(got_master_name, p, got_master_name_len);
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:5989: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 addr_str[GFARM_SOCKADDR_STRLEN];
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:6044: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.
		static unsigned char last_failover_xid[GFS_UDP_RPC_XID_SIZE];
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:6076: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(&last_failover_xid_addr, client_addr,
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:6079: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(last_failover_xid, got_xid,
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:6114: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.
	struct { char c[8]; } nloadavg[3];
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:6151: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 buffer[GFS_UDP_RPC_SIZE_MAX];
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:6718: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 *sock_name, *sock_dir, dir_buf[PATH_MAX];
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:7089:12:  [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).
		pid_fp = fopen(pid_file, "w");
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:7206: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(self_addresses, hp->h_addr, sizeof(*self_addresses));
data/gfarm-2.7.17+dfsg/server/gfsd/loadavg.c:22: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[30];
data/gfarm-2.7.17+dfsg/server/gfsd/loadavg.c:28: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("/proc/loadavg", O_RDONLY);
data/gfarm-2.7.17+dfsg/server/gfsd/spck.c:721: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 diag[sizeof(base) + GFARM_INT32STRLEN + 1];
data/gfarm-2.7.17+dfsg/server/gfsd/statfs.c:57: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 ((rv = open(READONLY_CONFIG_TMP_FILE,
data/gfarm-2.7.17+dfsg/server/gfsd/write_verify.c:668: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 end_time[TIMEBUF_SIZE];
data/gfarm-2.7.17+dfsg/server/gfsd/write_verify.c:710: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 write_verify_buf[WRITE_VERIFY_BUFSIZE + LINUX_RAWIO_ALIGNMENT - 1];
data/gfarm-2.7.17+dfsg/server/gfsd/write_verify.c:723: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 got_cksum[GFM_PROTO_CKSUM_MAXLEN];
data/gfarm-2.7.17+dfsg/server/gfsd/write_verify.c:724: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 cksum[GFARM_MSGDIGEST_STRSIZE];
data/gfarm-2.7.17+dfsg/server/gfsd/write_verify.c:1021: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).
	int fd = open(write_verify_state_tmp, O_CREAT|O_WRONLY|O_TRUNC, 0600);
data/gfarm-2.7.17+dfsg/server/gfsd/write_verify.c:1110: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 crash[TIMEBUF_SIZE], current[TIMEBUF_SIZE];
data/gfarm-2.7.17+dfsg/server/gfsd/write_verify.c:1127:18:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	char *bakfile, *tmpfile;
data/gfarm-2.7.17+dfsg/server/gfsd/write_verify.c:1133: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(write_verify_state_file, O_RDWR);
data/gfarm-2.7.17+dfsg/server/gfsd/write_verify.c:1163:9:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
			free(tmpfile);
data/gfarm-2.7.17+dfsg/server/gfsd/write_verify.c:1192:9:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
			free(tmpfile);
data/gfarm-2.7.17+dfsg/server/gfsd/write_verify.c:1195: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(write_verify_state_file,
data/gfarm-2.7.17+dfsg/server/gfsd/write_verify.c:1203:9:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
			free(tmpfile);
data/gfarm-2.7.17+dfsg/server/gfsd/write_verify.c:1208:27:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	write_verify_state_tmp = tmpfile;
data/gfarm-2.7.17+dfsg/server/gfsd/write_verify.c:1247: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 oldest[TIMEBUF_SIZE], current[TIMEBUF_SIZE];
data/gfarm-2.7.17+dfsg/server/gfsd/write_verify.c:1259: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(oldest, "none");
data/gfarm-2.7.17+dfsg/server/gfsd/write_verify.c:1294: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 oldest[TIMEBUF_SIZE], todo[TIMEBUF_SIZE], current[TIMEBUF_SIZE];
data/gfarm-2.7.17+dfsg/server/gfsd/write_verify.c:1299: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(oldest, "none");
data/gfarm-2.7.17+dfsg/snmptool/glogger3/expand_node_name.c:13: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 f[MAXFIGURE+2];
data/gfarm-2.7.17+dfsg/snmptool/glogger3/expand_node_name.c:250: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 newname[MAXNODENAME];
data/gfarm-2.7.17+dfsg/snmptool/glogger3/expand_node_name.c:253: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 format[MAXFORM];
data/gfarm-2.7.17+dfsg/snmptool/glogger3/expand_node_name.c:351: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 format[32];
data/gfarm-2.7.17+dfsg/snmptool/glogger3/expand_node_name.c:382: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 *rep[MAXREPLACE];
data/gfarm-2.7.17+dfsg/snmptool/glogger3/glogdump.c:54:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 str[32];
data/gfarm-2.7.17+dfsg/snmptool/glogger3/glogdump.c:325:8:  [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).
  fp = fopen(argv[1], "r");
data/gfarm-2.7.17+dfsg/snmptool/glogger3/glogger.c:37:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(file->buf_point, &i, 1);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/glogger.h:102:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char global_overwrite[MAXOVERWRITELEN];
data/gfarm-2.7.17+dfsg/snmptool/glogger3/glogger.h:130:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char global_path[MAXPATH];
data/gfarm-2.7.17+dfsg/snmptool/glogger3/glogger.h:134:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char requests_path[MAXPATH];
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:778:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(tmp, (void*)&files->metadata1size, sizeof(uint16_t));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:780:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(tmp, (void*)&files->version, sizeof(uint16_t));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:782:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(tmp, (void*)&files->dbg_size, sizeof(uint32_t));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:784:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(tmp, (void*)&files->start_sec, sizeof(uint32_t));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:786:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(tmp, (void*)&files->start_usec, sizeof(uint32_t));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:788:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(tmp, (void*)&files->dbg_interval_sec, sizeof(uint32_t));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:790:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(tmp, (void*)&files->dbg_interval_usec, sizeof(uint32_t));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:803:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(tmp, (void*)&files->metadata2size, sizeof(uint32_t));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:807:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(tmp, (void*)&files->hostdefsize, sizeof(uint16_t));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:812:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(tmp, hdef->ip, len);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:815:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(tmp, hdef->fqdn, len);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:818:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(tmp, hdef->nick, len);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:821:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(tmp, hdef->community, len);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:826:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(tmp, (void*)&files->oiddefsize, sizeof(uint16_t));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:831:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(tmp, odef->oidname, len);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:834:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(tmp, odef->nick, len);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:839:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(tmp, (void*)&files->imsize, sizeof(uint16_t));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:843:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(tmp, (void*)&im->hostindex, sizeof(uint16_t));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:845:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(tmp, (void*)&im->oidindex, sizeof(uint16_t));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:847:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(tmp, (void*)&im->interval_sec, sizeof(uint32_t));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:849:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(tmp, (void*)&im->interval_usec, sizeof(uint32_t));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:856:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(tmp, (void*)&files->dbgmapsize, sizeof(uint16_t));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:874: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(pnow, (void*)&dm->im->hostindex, 2);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:876: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(pnow, (void*)&dm->im->oidindex,  2);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:952: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 tmp[TMPLEN];
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:1019: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 path[MAXPATH];
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:1064: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).
    now->fd = open(now->nowpath, O_RDWR|O_TRUNC|O_CREAT, 0666);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:1115: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).
    now->fp = fopen(now->nowpath, "wb");
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:26:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char global_defaultdir[MAXDEFAULTDIRLEN];
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:30:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char global_overwrite[MAXOVERWRITELEN]; /* ON, OFF, enable, disable */
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:31:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char global_label[MAXLABELLEN];
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:32:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char global_path[MAXPATH];
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:33:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char global_community[MAXCOMMLEN];
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:34:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char global_fsync[MAXFSYNCLEN]; /* (number), on, off, enable, disable */
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:38:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char requests_path[MAXPATH];
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:39:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char requests_community[MAXCOMMLEN];
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:42:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char mib_path[MAXPATH];
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:60:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *global_keys[GLOBAL_KEY_NUMBER] = {
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:74:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *requests_keys[REQUESTS_KEY_NUMBER] = {
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:83:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *mib_keys[MIB_KEY_NUMBER] = {
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:243: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 tmp[TMPLEN];
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:324:32:  [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).
      global_interval.tv_sec = atol(val);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:327:33:  [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).
      global_interval.tv_usec = atol(val);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:338:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      global_outputsizemax = atoi(val);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:361: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).
      global_fileinterval.tv_sec = atoi(val);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:391:34:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      requests_interval.tv_sec = atol(val);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:394:35:  [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).
      requests_interval.tv_usec = atol(val);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:422:29:  [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).
      mib_interval.tv_sec = atol(val);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:425:30:  [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).
      mib_interval.tv_usec = atol(val);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:710: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 *rep[MAXREPLACE];
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:921: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 line[MAXLINE], *linep;
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:931: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).
    fp = fopen(configfilename, "r");
data/gfarm-2.7.17+dfsg/snmptool/glogger3/set_options.c:27:8:  [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).
  fp = fopen(opt.pidfile, "w");
data/gfarm-2.7.17+dfsg/snmptool/glogger3/set_options.c:74: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).
      bufmode = atoi(*argv);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/set_options.c:103:49:  [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).
      global_outputsizemax = opt.mmap_maxsize = atoi(*argv);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/snmpasync.c:176: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 sprintbuf[BUFSIZE];
data/gfarm-2.7.17+dfsg/snmptool/glogger3/snmpasync.c:294:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[128];
data/gfarm-2.7.17+dfsg/snmptool/glogger3/write_to_files.c:40: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(file->buf_point, ptr, n);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/write_to_files.c:157: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(file->buf_point, ptr, len);
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/cmd/main.cpp:22: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 sPasswd[4096];
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/cmd/main.cpp:42:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char mPasswd[4096];
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/cmd/main.cpp:62:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        ::execvp((const char *)argv[0], (char * const *)argv);
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/cmd/main.cpp:79:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[65536];
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/cmd/main.cpp:126:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        (void)memcpy((void *)mPasswd, (void *)passwd,
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/cmd/main.cpp:376: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 tmpPasswd[4096];
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/ChunkedBuffer.h:287:23:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                (void)memcpy((void *)newPtr, 
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/ChunkedBuffer.h:413:23:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                (void)memcpy((void *)dstBuf,
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/ChunkedBuffer.h:455:31:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        (void)memcpy((void *)&(dstBuf[copiedSize]),
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/Process.h:163: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 mSlavePtyName[4096];
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/Process.h:396:35:  [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 ((in = open(mSlavePtyName, O_RDWR)) < 0) {
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/Process.h:661: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 ((i = open(mStdInFile, O_RDONLY)) >= 0) {
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/Process.h:677: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 ((i = open(mStdOutFile,
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/Process.h:694: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 ((i = open(mStdErrFile,
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/SimpleFileParser.h:151:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char lineBuf[4096];
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/SimpleFileParser.h:152:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char *tokens[4096];
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/SimpleFileParser.h:160:14:  [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).
        fd = fopen(path, "r");
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/SimpleFileParser.cpp:225: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).
    mFd = fopen(fileName, "r");
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_logger.cpp:124: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).
            oFd = open(arg, O_RDWR | O_CREAT | O_APPEND, 0600);
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_logger.cpp:256:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char dateBuf[32];
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_logger.cpp:257:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char msg[4096];
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_safe_syscall.cpp:308: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).
    int fd = open("/dev/tty", O_RDONLY);
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_safe_syscall.cpp:320: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("/dev/tty", O_RDONLY);
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_sha1.cpp:131:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy((void *)&(cPtr->buffer[j]), (void *)data, (i = 64 - j));
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_sha1.cpp:141: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((void *)&(cPtr->buffer[j]), (void *)&(data[i]), len - i);
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_uid.cpp:27: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 aTab[64] = {
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_util.cpp:188:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char hBuf[INET6_ADDRSTRLEN];
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_util.cpp:220: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 hostBuf[4096];
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_util.cpp:232:9:  [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(hostBuf, "%d.%d.%d.%d",
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_util.cpp:251:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char  hostBuf[INET6_ADDRSTRLEN];
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_util.cpp:277:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char hostBuf[4096];
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_util.cpp:789: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 copyBuf[65536];
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_util.cpp:1055: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).
        i = open("/dev/zero", O_RDONLY);
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_util.cpp:1060: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).
        i = open("/dev/null", O_WRONLY);
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_util.cpp:1065: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).
        i = open("/dev/null", O_WRONLY);
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_util.cpp:1610:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char *tokens[4096];
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_util.cpp:1630:19:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            (void)memcpy((void *)(consPath + curConsLen),
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_util.cpp:1861:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        (void)memcpy((void *)pwBuf, (void *)tmp2, len);
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_util.cpp:1876: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).
    int ret = open("/dev/ptmx", O_RDWR);
data/gfarm-2.7.17+dfsg/bench/bwlat-syscache/bwlat-syscache.c:145:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(fd, buf, blocksize) != blocksize)
data/gfarm-2.7.17+dfsg/bench/bwlat-syscache/bwlat-syscache.c:153:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    if (read(fd, buf, blocksize) != blocksize)
data/gfarm-2.7.17+dfsg/bench/bwlat-syscache/bwlat-syscache.c:169:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    if (read(fd, buf, blocksize) != blocksize)
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:303:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(0);
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:519:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(str);
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:922:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		else if (strlen(buf1) == 0)
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:924:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		else if (strlen(buf2) == 0)
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1152:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		else if (strlen(buf1) == 0)
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1154:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		else if (strlen(buf2) == 0)
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1230: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 (lead_str != NULL && x+strlen(p->name)>=WIDTH-5)
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1826: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(diob.d_mem, len);
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1827:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	e = read(fd, buf, len) < 0 ? errno : 0;
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:1908: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(diob.d_mem, len);
data/gfarm-2.7.17+dfsg/bench/fsstress/fsstress.c:2239:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	e = read(fd, buf, len) < 0 ? errno : 0;
data/gfarm-2.7.17+dfsg/bench/fsstress/global.h:77:1:  [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.
memalign(int blksize, int bytes)
data/gfarm-2.7.17+dfsg/bench/fsysbench/fsysbench.c:322:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(1000000);
data/gfarm-2.7.17+dfsg/bench/fsysbench/fsysbench.c:490:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	l = read(fd, c, len);
data/gfarm-2.7.17+dfsg/bench/gfiops/gfiops.c:123: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).
			int len = strlen(dname) + strlen_int(i) + 3;
data/gfarm-2.7.17+dfsg/bench/gfiops/gfiops.c:774: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).
			int len = strlen(dir) + strlen_int(i) + 3;
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-autoreplica/gfperf-autoreplica-main.c:270:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(500000);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-copy/gfperf-copy-gfarm2fs.c:138:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((ret = read(sf, buf, buf_size)) > 0) {
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-copy/gfperf-copy-libgfarm.c:86:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((ret = read(sf, buf, buf_size)) > 0) {
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-copy/gfperf-copy-main.c:151:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(src_url);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-copy/gfperf-copy-main.c:167:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(dst_url);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-metadata/gfperf-metadata-gfarm2fs.c:444:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t val_len = strlen(value);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-metadata/gfperf-metadata-libgfarm.c:336:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	char *read;
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-metadata/gfperf-metadata-libgfarm.c:374:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	e = gfs_readlink(tmp->names[0], &read);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-metadata/gfperf-metadata-libgfarm.c:380:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	free(read);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-metadata/gfperf-metadata-libgfarm.c:383:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		e = gfs_readlink(tmp->names[i], &read);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-metadata/gfperf-metadata-libgfarm.c:389:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		free(read);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-metadata/gfperf-metadata-libgfarm.c:460:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int val_len = strlen(value);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-parallel-read/gfperf-parallel-read-main.c:197:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((r = read(fd, buf, bufsize)) > 0) {
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-parallel-read/gfperf-parallel-read-main.c:254:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		r = read(fd, buf, bufsize);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-read/gfperf-read-main.c:184:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, buf, bufsize);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-read/gfperf-read-main.c:193:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((r = read(fd, buf, bufsize)) > 0) {
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-read/gfperf-read-main.c:261:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	r = read(fd, buf, bufsize);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-read/gfperf-read-main.c:273:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		r = read(fd, buf, bufsize);
data/gfarm-2.7.17+dfsg/bench/gfperf/gfperf-replica/gfperf-replica-main.c:132:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(testdir);
data/gfarm-2.7.17+dfsg/bench/nconnect/nconnect.c:208: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).
	size_t len = strlen(pathname);
data/gfarm-2.7.17+dfsg/bench/nconnect/nconnect.c:485:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	done = read(fd, q->buffer, QBUFSIZE);
data/gfarm-2.7.17+dfsg/bench/nconnect/nconnect.c:593:8:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	char *equal;
data/gfarm-2.7.17+dfsg/bench/nconnect/nconnect.c:597:6:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	if (equal != NULL)
data/gfarm-2.7.17+dfsg/bench/nconnect/nconnect.c:625:8:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
			if (equal != NULL)
data/gfarm-2.7.17+dfsg/bench/thput-fsstripe/thput-fsstripe.c:58:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			rv = read(fd, buffer, chunk_size < iosize ?
data/gfarm-2.7.17+dfsg/bench/thput-fsys/thput-fsys.c:184:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			rv = read(fd, buffer,
data/gfarm-2.7.17+dfsg/bench/thput-fsys/thput-fsys.c:188:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			rv = read(fd, buffer,
data/gfarm-2.7.17+dfsg/bench/thput-fsys/thput-fsys.c:230:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		rv = read(ifd, buffer,
data/gfarm-2.7.17+dfsg/bench/thput-pvfs/thput-pvfs.c:354:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char bfile1[MAXHOSTNAMELEN + strlen(PVFS_MOUNT file_prefix) + 4];
data/gfarm-2.7.17+dfsg/bench/thput-pvfs/thput-pvfs.c:355:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char bfile2[MAXHOSTNAMELEN + strlen(PVFS_MOUNT file_prefix) + 4];
data/gfarm-2.7.17+dfsg/gftool/gfdump/gfdump.c:86:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen(string) + 1; /* includes '\0' */
data/gfarm-2.7.17+dfsg/gftool/gfdump/gfdump.c:484:17:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((type = fgetc(f)) != EOF) {
data/gfarm-2.7.17+dfsg/gftool/gffindxmlattr/gffindxmlattr.c:49:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			while ((sz = read(fd, buf + msg_sz, st.st_size - msg_sz)) > 0) {
data/gfarm-2.7.17+dfsg/gftool/gfhost/gfhost.c:402:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(line);
data/gfarm-2.7.17+dfsg/gftool/gfhost/gfhost.c:413:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				len = strlen(line);
data/gfarm-2.7.17+dfsg/gftool/gfhost/gfhost.c:422:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(line);
data/gfarm-2.7.17+dfsg/gftool/gfls/gfls.c:164: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).
	prefix_len = strlen(prefix);
data/gfarm-2.7.17+dfsg/gftool/gfls/gfls.c:173: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(files[i]) <= space) {
data/gfarm-2.7.17+dfsg/gftool/gfls/gfls.c:207: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).
				    strdup(value + strlen(value) + 1);
data/gfarm-2.7.17+dfsg/gftool/gfls/gfls.c:213: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).
					    value + strlen(value) + 1);
data/gfarm-2.7.17+dfsg/gftool/gfls/gfls.c:373: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).
			j = strlen(ls[i].path);
data/gfarm-2.7.17+dfsg/gftool/gfls/gfls.c:410:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					    - strlen(ls[k].path))
data/gfarm-2.7.17+dfsg/gftool/gfls/gfls.c:468:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen(prefix) + strlen(dirname);
data/gfarm-2.7.17+dfsg/gftool/gfls/gfls.c:468: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).
	int len = strlen(prefix) + strlen(dirname);
data/gfarm-2.7.17+dfsg/gftool/gflsof/gflsof.c:48:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (gfarm_hash_enter(hostname_hashtab, str, strlen(str) + 1, 1,
data/gfarm-2.7.17+dfsg/gftool/gflsof/gflsof.c:90:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen(s);
data/gfarm-2.7.17+dfsg/gftool/gfmdhost/gfmdhost.c:177: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).
	int cla = ma->clustername ? strlen(ma->clustername) : 0;
data/gfarm-2.7.17+dfsg/gftool/gfmdhost/gfmdhost.c:178: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).
	int clb = mb->clustername ? strlen(mb->clustername) : 0;
data/gfarm-2.7.17+dfsg/gftool/gfmdhost/gfmdhost.c:244:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			    strlen(ms->clustername) == 0 ?
data/gfarm-2.7.17+dfsg/gftool/gfmv/gfmv.c:34:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char *s = malloc(strlen(src) - a->srcdirlen + a->dstdirlen + 1);
data/gfarm-2.7.17+dfsg/gftool/gfmv/gfmv.c:171: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).
	a.srcdirlen = strlen(src);
data/gfarm-2.7.17+dfsg/gftool/gfmv/gfmv.c:172: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).
	a.dstdirlen = strlen(dst);
data/gfarm-2.7.17+dfsg/gftool/gfmv/gfmv.c:221:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c1 = getchar();
data/gfarm-2.7.17+dfsg/gftool/gfmv/gfmv.c:225:16:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while ((c2 = getchar()) != EOF && c2 != '\n')
data/gfarm-2.7.17+dfsg/gftool/gfmv/gfmv.c:375:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		dstlen = strlen(dst);
data/gfarm-2.7.17+dfsg/gftool/gfmv/gfmv.c:378: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).
			srclen = strlen(src);
data/gfarm-2.7.17+dfsg/gftool/gfncopy/gfncopy.c:119: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).
				path_len = strlen(path) + 9; /* + gfarm:// */
data/gfarm-2.7.17+dfsg/gftool/gfncopy/gfncopy.c:127:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				path_len = strlen(path) + 10; /* + gfarm:/// */
data/gfarm-2.7.17+dfsg/gftool/gfncopy/gfncopy.c:143:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strncmp(url, "gfarm:///", 9) != 0 && strlen(url) >= 9) {
data/gfarm-2.7.17+dfsg/gftool/gfncopy/gfncopy.c:175: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).
	metadb_len = strlen(metadb);
data/gfarm-2.7.17+dfsg/gftool/gfncopy/gfncopy.c:200: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).
		path_len = strlen(path);
data/gfarm-2.7.17+dfsg/gftool/gfncopy/gfncopy.c:686: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).
	e = gfncopy_setxattr(url, GFARM_EA_NCOPY, str, strlen(str), set_flags);
data/gfarm-2.7.17+dfsg/gftool/gfncopy/gfncopy.c:723:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (gfarm_hash_enter(ngroup, g, strlen(g), 0, NULL) == NULL) {
data/gfarm-2.7.17+dfsg/gftool/gfncopy/gfncopy.c:732: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).
		if (gfarm_hash_lookup(ngroup, g, strlen(g)) == NULL) {
data/gfarm-2.7.17+dfsg/gftool/gfncopy/gfncopy.c:788:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    strlen(repattr) + 1, set_flags);
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfarm_cmd.c:123:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			r_len = read(o->fd_out, buf, BUFSIZE);
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfarm_cmd.c:137:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			r_len = read(o->fd_err, buf, BUFSIZE);
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfarm_dirtree.c:275:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(dentp->d_name, dent->d_name, buflen - 1);
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfarm_pfunc.c:336:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((len = read(fp->fd, b, bufsize)) > 0) {
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfarm_pfunc.c:540:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		rlen = read(a->fp->fd, b, copy_bufsize);
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfarm_pfunc.c:1160:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	mask = umask(0022);
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfarm_pfunc.c:1161:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(mask);
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfprep.c:216:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	he = gfarm_hash_lookup(hash, hostname, strlen(hostname) + 1);
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfprep.c:616: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).
		gfarm_hash_enter(hash, h, strlen(h)+1, 0, NULL);
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfprep.c:792:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	mask = umask(0022);
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfprep.c:793:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(mask);
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfprep.c:1204: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).
			     (dir[strlen(dir) - 1] == '/' ? "" : "/"),
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfurl.c:56:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			return (strlen(p));
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfurl.c:152:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    path, (path[strlen(path) - 1] == '/' ? "" : "/"), n);
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfurl.c:201:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = gfarm_size_add(&overflow, strlen(p), strlen(base));
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfurl.c:201:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = gfarm_size_add(&overflow, strlen(p), strlen(base));
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfurl.c:212:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
		strcat(rv, "/");
data/gfarm-2.7.17+dfsg/gftool/gfprep/gfurl.c:271:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = gfarm_size_add(&overflow, strlen(p),
data/gfarm-2.7.17+dfsg/gftool/gfreg/gfreg.c:134:3:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		strlen(gfarm_url) + 1 + strlen(base_name) + 1);
data/gfarm-2.7.17+dfsg/gftool/gfreg/gfreg.c:134: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).
		strlen(gfarm_url) + 1 + strlen(base_name) + 1);
data/gfarm-2.7.17+dfsg/gftool/gfreg/gfreg.c:173:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		rv = read(fd, buffer, sizeof(buffer));
data/gfarm-2.7.17+dfsg/gftool/gfreg/gfreg.c:347: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).
	GFARM_MALLOC_ARRAY(p, strlen(cwd) + strlen(path) + 2);
data/gfarm-2.7.17+dfsg/gftool/gfreg/gfreg.c:347:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	GFARM_MALLOC_ARRAY(p, strlen(cwd) + strlen(path) + 2);
data/gfarm-2.7.17+dfsg/gftool/gfrep/gfrep.c:203: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).
			a->src_hosthash, copy[i], strlen(copy[i]) + 1)) &&
data/gfarm-2.7.17+dfsg/gftool/gfrep/gfrep.c:208: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).
			a->dst_hosthash, copy[i], strlen(copy[i]) + 1)) &&
data/gfarm-2.7.17+dfsg/gftool/gfrep/gfrep.c:228: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).
			a->src_hosthash, s, strlen(s) + 1)) &&
data/gfarm-2.7.17+dfsg/gftool/gfrep/gfrep.c:230: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).
			gfarm_hash_enter(a->srchash, s, strlen(s)+1, 0, NULL);
data/gfarm-2.7.17+dfsg/gftool/gfrep/gfrep.c:308: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).
		gfarm_hash_enter(hash, array[i], strlen(array[i])+1, 0, NULL);
data/gfarm-2.7.17+dfsg/gftool/gfrep/gfrep.c:748:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    gfarm_hash_lookup(hosthash, host, strlen(host) + 1)) {
data/gfarm-2.7.17+dfsg/gftool/gfrm/gfrm.c:169: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).
			a->a->hosthash, s, strlen(s) + 1))
data/gfarm-2.7.17+dfsg/gftool/gfrm/gfrm.c:172: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).
		gfarm_hash_enter(a->hosthash, s, strlen(s) + 1, 0, NULL);
data/gfarm-2.7.17+dfsg/gftool/gfrm/gfrm.c:335:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (gfarm_hash_lookup(hash, s, strlen(s) + 1)) {
data/gfarm-2.7.17+dfsg/gftool/gfrm/gfrm.c:370: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).
		gfarm_hash_enter(hash, array[i], strlen(array[i])+1, 0, NULL);
data/gfarm-2.7.17+dfsg/gftool/gfsck/gfsck.c:200: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).
	GFARM_MALLOC_ARRAY(gfarm_url, strlen(gfarm_dir) + strlen(file) + 2);
data/gfarm-2.7.17+dfsg/gftool/gfsck/gfsck.c:200: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).
	GFARM_MALLOC_ARRAY(gfarm_url, strlen(gfarm_dir) + strlen(file) + 2);
data/gfarm-2.7.17+dfsg/gftool/gfsetdir/gfsetdir.c:98:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int shell_len = strlen(shell);
data/gfarm-2.7.17+dfsg/gftool/gfsetfacl/gfsetfacl.c:92: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).
			if (qual == NULL || strlen(qual) == 0 ||
data/gfarm-2.7.17+dfsg/gftool/gfsetfacl/gfsetfacl.c:93: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).
			    qual2 == NULL || strlen(qual2) == 0) {
data/gfarm-2.7.17+dfsg/gftool/gfspoolmd5/gfspoolmd5.c:120:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		GFARM_MALLOC_ARRAY(dir1, strlen(dir) + strlen(dp->d_name) + 2);
data/gfarm-2.7.17+dfsg/gftool/gfspoolmd5/gfspoolmd5.c:120: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).
		GFARM_MALLOC_ARRAY(dir1, strlen(dir) + strlen(dp->d_name) + 2);
data/gfarm-2.7.17+dfsg/gftool/gfspoolmd5/gfspoolmd5.c:126:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strcmp(dir, "") != 0 && dir[strlen(dir) - 1] != '/')
data/gfarm-2.7.17+dfsg/gftool/gfspoolmd5/gfspoolmd5.c:127:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
			strcat(dir1, "/");
data/gfarm-2.7.17+dfsg/gftool/gfspoolmd5/gfspoolmd5.c:167:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((sz = read(fd, buf, sizeof buf)) > 0)
data/gfarm-2.7.17+dfsg/gftool/gfvoms-sync/gfvoms-update/gfvoms-update.c:60: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).
	GFARM_CALLOC_ARRAY(vo, (strlen(arg) + 2));\
data/gfarm-2.7.17+dfsg/gftool/gfvoms-sync/gfvoms-update/gfvoms-update.c:65: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).
		memset(vo, '\0', (strlen(arg) + 2));\
data/gfarm-2.7.17+dfsg/gftool/gfvoms-sync/gfvoms-update/gfvoms-update.c:130:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	while (strlen(str) > 0 &&
data/gfarm-2.7.17+dfsg/gftool/gfvoms-sync/gfvoms-update/gfvoms-update.c:131:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  (str[strlen(str) - 1] == '\n' || str[strlen(str) - 1] == '\r')) {
data/gfarm-2.7.17+dfsg/gftool/gfvoms-sync/gfvoms-update/gfvoms-update.c:131: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).
		  (str[strlen(str) - 1] == '\n' || str[strlen(str) - 1] == '\r')) {
data/gfarm-2.7.17+dfsg/gftool/gfvoms-sync/gfvoms-update/gfvoms-update.c:132: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).
		str[strlen(str) - 1] = '\0';
data/gfarm-2.7.17+dfsg/gftool/gfvoms-sync/gfvoms-update/gfvoms-update.c:338:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (p != groups[i].groupname || p[strlen(vomsid)] != ':') {
data/gfarm-2.7.17+dfsg/gftool/gfvoms-sync/gfvoms-update/gfvoms-update.c:342:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		p += (strlen(vomsid) + 1);
data/gfarm-2.7.17+dfsg/gftool/gfvoms-sync/gfvoms-update/gfvoms-update.c:346:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		p += (strlen(vo));
data/gfarm-2.7.17+dfsg/gftool/gfvoms-sync/gfvoms-update/gfvoms-update.c:387:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen(vomsid) + 1 + strlen(vo) + strlen(group) + 1;
data/gfarm-2.7.17+dfsg/gftool/gfvoms-sync/gfvoms-update/gfvoms-update.c:387:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen(vomsid) + 1 + strlen(vo) + strlen(group) + 1;
data/gfarm-2.7.17+dfsg/gftool/gfvoms-sync/gfvoms-update/gfvoms-update.c:387:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen(vomsid) + 1 + strlen(vo) + strlen(group) + 1;
data/gfarm-2.7.17+dfsg/gftool/gfvoms-sync/gfvoms-update/gfvoms-update.c:427:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (idx[strlen(idx)-1] != '\n' && idx[strlen(idx)-1] != '\r') {
data/gfarm-2.7.17+dfsg/gftool/gfvoms-sync/gfvoms-update/gfvoms-update.c:427:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (idx[strlen(idx)-1] != '\n' && idx[strlen(idx)-1] != '\r') {
data/gfarm-2.7.17+dfsg/gftool/gfvoms-sync/gfvoms-update/gfvoms-update.c:437: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(idx) == 0 || idx[0] == '#') continue;
data/gfarm-2.7.17+dfsg/gftool/gfvoms-sync/gfvoms-update/gfvoms-update.c:447:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				p += strlen(VOID_FORM);
data/gfarm-2.7.17+dfsg/gftool/gfvoms-sync/gfvoms-update/gfvoms-update.c:467:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				p += strlen(VO_FORM);
data/gfarm-2.7.17+dfsg/gftool/gfvoms-sync/gfvoms-update/gfvoms-update.c:502:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				p += strlen(GROUP_FORM);
data/gfarm-2.7.17+dfsg/gftool/gfvoms-sync/gfvoms-update/gfvoms-update.c:527:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				p += strlen(USER_FORM);
data/gfarm-2.7.17+dfsg/gftool/gfvoms-sync/gfvoms-update/gfvoms-update.c:874: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(vomsid); i++) {
data/gfarm-2.7.17+dfsg/gftool/gfxattr/gfxattr.c:59:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((sz = read(fd, buf + msg_sz, count)) > 0) {
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_common.c:80:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF) {
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_common.c:98:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		c1 = getc(fp);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_common.c:104:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		c2 = getc(fp);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_common.c:114:7:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c1 = getc(fp);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_common.c:144:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			rv = read(fd, p + i, length - i);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_common.c:207:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    strlen(home) + sizeof(keyfile_basename));
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_common_gsi.c:244:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		rv = gfarmGssImportName(namep, name, strlen(name),
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_common_gsi.c:267:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		rv = gfarmGssImportName(namep, name, strlen(name),
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_server.c:518:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    strlen(global_username) + 1 + strlen(hostname) + 1);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_server.c:518:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    strlen(global_username) + 1 + strlen(hostname) + 1);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_server_gsi.c:215:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			GFARM_MALLOC_ARRAY(aux, strlen(global_username) + 1 +
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/auth_server_gsi.c:216:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			    strlen(hostname) + 1);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/config.c:298:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return (gfarm_hash_casefold(id->hostname, strlen(id->hostname)) +
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/config.c:1301: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).
	rv = write(2, message, strlen(message));
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/config.c:1325: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).
		rv = write(2, msg, strlen(msg));
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/config.c:2209:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len1 = strlen(gfarm_spool_root[i]) - 1;
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/config.c:2395:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(s);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/config.c:3014: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).
				copy_len = strlen(staticp->argv0);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/config.c:4896:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	sz = gfarm_size_add(&overflow, strlen(basename),
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/config_client.c:60:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    strlen(home) + 1 + sizeof(gfarm_client_rc));
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/conn_hash.c:23:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return (gfarm_hash_casefold(id->hostname, strlen(id->hostname)) +
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/conn_hash.c:25: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).
		gfarm_hash_default(id->username, strlen(id->username)) +
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/filesystem.c:116:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return (gfarm_hash_casefold(hostname, strlen(hostname)) + id->port * 3);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfarm_foreach.c:40: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).
	file_len = strlen(file) + strlen(slash);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfarm_foreach.c:40:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	file_len = strlen(file) + strlen(slash);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfarm_foreach.c:54:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		GFARM_MALLOC_ARRAY(path, file_len + strlen(d) + 1);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfarm_path.c:43: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).
		base_len = strlen(base) + 1; /* 1 for '/' */
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfarm_path.c:62:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
			strcat(p, "/");
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfp_xdr.c:310: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).
			n = strlen(s);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfp_xdr.c:431: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).
			n = strlen(s);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_acl.c:602: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).
		int slen = strlen(src); \
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_acl.c:733: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).
	size_t len = strlen(token);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_acl.c:1041: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 (q == NULL || strlen(q) == 0) {
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_acl.c:1068: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 (q == NULL || strlen(q) == 0) {
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_acl.c:1359: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).
		ADD_BUF(s, strlen(s) + 1);  /* with '\0' */
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_acl.c:1407:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(p) + 1;  /* with '\0' */
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_client.c:2416:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					rv = read(r_fd, buffer, to_read);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_client.c:2421:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				rv = read(r_fd, buffer, to_read);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_client.c:2849:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		rv = read(sock, nloadavg, sizeof(nloadavg));
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_dir.c:56:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = 1 + strlen(canonic_dir) + 1;
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_dir.c:157:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(path);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_dircache.c:326:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	entry = gfarm_hash_enter(cache->table, path, strlen(path) + 1,
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_dircache.c:405: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).
		cache->table, path, strlen(path)+1, &it)) {
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_dircache.c:645:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	entry = gfarm_hash_lookup(cache->table, path, strlen(path) + 1);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_dircache.c:814:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    strlen(dir->path) + strlen(ep->d_name) + 1);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_dircache.c:814: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).
		    strlen(dir->path) + strlen(ep->d_name) + 1);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_dircache.c:933: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).
		GFARM_MALLOC_ARRAY(p, strlen(path) + 1 + 1);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_dircache.c:937: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).
		GFARM_MALLOC_ARRAY(p, strlen(path) + 1);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_pio_local.c:335:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					rv = read(r_fd, buffer, to_read);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_pio_local.c:340:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				rv = read(r_fd, buffer, to_read);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_proto.c:40:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((size = read(fd, buffer, buffer_size)) > 0) {
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_realpath.c:42:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(path);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_realpath.c:98:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(buf);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_realpath.c:100: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).
	GFARM_MALLOC_ARRAY(b, len + strlen(hostname) + GFARM_URL_PREFIX_LENGTH +
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_xattr.c:836: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).
			pathlen = strlen(ctxp->path);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_xattr.c:839:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			    &overflow, pathlen, strlen(fpath)), 2);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/gfs_xattr.c:850:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				pathlen = strlen(ctxp->workpath);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/glob.c:122:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (path_tail - path_buffer + strlen(pattern) >
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/glob.c:130:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		glob_pattern_to_name(path_tail, pattern, strlen(pattern));
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/glob.c:164: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).
		path_tail += strlen(path_tail);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/glob.c:205:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (path_tail - path_buffer + strlen(entry->d_name) >
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/glob.c:225:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		e = gfs_glob_sub(path_buffer, path_tail + strlen(path_tail),
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/glob.c:263:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len = strlen(s);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/glob.c:270:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size = gfarm_size_add(&overflow, 1 + len, strlen(pattern) + 1);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/glob.c:284: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(path_buffer, ".");
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/hostspec.c:60:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    - sizeof(union gfhs_union) + strlen(name) + 1);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/hostspec.c:250: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).
	int hlen = strlen(hostname), dlen = strlen(domainname);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/hostspec.c:250:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int hlen = strlen(hostname), dlen = strlen(domainname);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/hostspec.c:392:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(string, s, size);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/hostspec.c:402:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(string, s, size);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/import_help.c:50:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int l = strlen(line);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/import_help.c:198:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int l = strlen(line);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/io_fd.c:105:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		rv = read(fd, data, length);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/io_fd.c:124:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		rv = read(fd, data, length);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/iostat.c:104:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(hp->s_name, basename(path), GFARM_IOSTAT_NAME_MAX);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/lookup.c:399:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	linklen = link == NULL ? 0 : strlen(link);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/lookup.c:406:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	blen = strlen(rest);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/lookup.c:420: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).
		(is_rel ? strlen(n) + 1 : 0);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/lookup.c:475: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).
	for (p = path_start + strlen(path_start) - 1; p >= path_start; --p)
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/lookup.c:519: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).
			gfm_server, *restp, strlen(*restp), pflags))
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/metadb_common.c:289: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).
	GFARM_MALLOC_ARRAY(user, strlen(s->st_user) + 1);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/metadb_common.c:290:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	GFARM_MALLOC_ARRAY(group, strlen(s->st_group) + 1);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/param.c:63: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).
	configlen = strlen(config);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/param.c:67: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(type->name) != namelen ||
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/patmatch.c:124:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int residual = strlen(name);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/patmatch.c:156:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return (gfarm_pattern_submatch(pattern, strlen(pattern), name, flags));
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/repattr.c:172:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(buf);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/repattr.c:178:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(buf);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/repattr.c:215:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len = strlen(buf);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/repattr.c:474:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    strlen(gfarm_repattr_group(reps[i]))));
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/schedule.c:279:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	(gfarm_hash_lookup(arch_set, arch, strlen(arch) + 1) != NULL)
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/schedule.c:325:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    sections[i].section, strlen(sections[i].section) + 1,
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/url.c:117:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	p = dir + strlen(dir) - 1;
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfarm/url.c:159:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	p = dir + strlen(dir) - 1;
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/auth.c:215: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).
	GFARM_MALLOC_ARRAY(path, strlen(dir) + 1 + strlen(file) + 1);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/auth.c:215:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	GFARM_MALLOC_ARRAY(path, strlen(dir) + 1 + strlen(file) + 1);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/auth.c:392: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).
		int dLen = strlen(distName);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/auth.c:433:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strlen(localName) + 1, sizeof(aePtr), &isNew);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/auth.c:467:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strlen(aePtr->distName) + 1, sizeof(aePtr), &isNew);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/auth.c:475: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).
			localName, strlen(localName) + 1);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/auth.c:486: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).
				     localName, strlen(localName) + 1);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/auth.c:600:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		distUserName, strlen(distUserName) + 1);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/auth.c:634: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).
		localUserName, strlen(localUserName) + 1);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/auth.c:677:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen(str);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/client2.c:131:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(buf);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/gsi.c:187: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).
	nameLength = strlen(aePtr->distName);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/gsi.c:218:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t nameLength = strlen(service) + 1 + strlen(hostname);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/gsi.c:218:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t nameLength = strlen(service) + 1 + strlen(hostname);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/gsi.c:421:7:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		int equal;
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/gsi.c:424:11:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
					    &equal);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/gsi.c:425:37:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		if (majStat3 == GSS_S_COMPLETE && equal) {
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/gsi.c:1080:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	GFARM_MALLOC_ARRAY(env, sizeof(env_name) + strlen(filename));
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/misc.c:54:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(buf);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/scarg.c:55: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).
			       arg, strlen(arg), GSS_C_NO_OID,
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/scarg.c:70: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).
			       arg, strlen(arg), GSS_C_NT_USER_NAME,
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/scarg.c:82: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).
			       arg, strlen(arg), GSS_C_NT_STRING_UID_NAME,
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/scarg.c:94: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).
			       arg, strlen(arg), GSS_C_NT_EXPORT_NAME,
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/scarg.c:113: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).
			       arg, strlen(arg), GSS_C_NT_USER_NAME,
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfsl/tcputil.c:282:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	cur = read(fd, buf + sum, len - sum);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/gfevent.c:768:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					read(q->evfd, buf, 1);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/gfevent.c:874:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rv = read(state->sock, &state->result, sizeof(state->result));
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/hash.c:92:8:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	int (*equal)(const void *, int, const void *, int);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/hash.c:100:16:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		       int (*equal)(const void *, int, const void *, int))
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/hash.c:125:19:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	hashtab->equal = equal;
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/hash.c:151:8:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	int (*equal)(const void *, int, const void *, int) = hashtab->equal;
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/hash.c:151:64:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	int (*equal)(const void *, int, const void *, int) = hashtab->equal;
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/hash.c:154:9:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		if ((*equal)(HASH_KEY(p), p->key_length, key, keylen))
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/hash_strptr.c:16:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return (gfarm_hash_default(str, strlen(str)));
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/hash_strptr.c:31:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len1 = strlen(str1);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/hash_strptr.c:32:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len2 = strlen(str2);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/hash_strptr.c:49:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return (gfarm_hash_casefold(str, strlen(str)));
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/hash_strptr.c:64:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len1 = strlen(str1);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/hash_strptr.c:65:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len2 = strlen(str2);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/id_table.c:660:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(buffer);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/proctitle.c:242: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).
	tail = old_argv[0] + strlen(old_argv[0]);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/proctitle.c:245: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).
			tail = old_argv[i] + strlen(old_argv[i]);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/proctitle.c:249: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).
			tail = environ[i] + strlen(environ[i]);
data/gfarm-2.7.17+dfsg/lib/libgfarm/gfutil/utf8.c:97:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return gfarm_utf8_validate_sequences(string, strlen(string));
data/gfarm-2.7.17+dfsg/linux/gfskd/gfskd.c:326: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).
		fbufp->f_name.d_len = strlen(map_file) + 1;
data/gfarm-2.7.17+dfsg/linux/gfskd/gfskd.c:397:3:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		strlen(mdatap->m_fbuf[GFSK_FBUF_CONFIG].f_name.d_buf) + 1;
data/gfarm-2.7.17+dfsg/linux/gfskd/gfskd.c:659:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			cp += strlen(name);
data/gfarm-2.7.17+dfsg/linux/gfskd/gfskd.c:779:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(0);
data/gfarm-2.7.17+dfsg/linux/gfskd/gfskd_proc.c:165:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		len = read(fd, buf, bufsize);
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_ccib.c:744:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		r_magic, GFCC_RPC_MAGIC, strlen(GFCC_RPC_MAGIC))) {
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_ccib.c:1099:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memcpy(rpc->r_magic, GFCC_RPC_MAGIC, strlen(GFCC_RPC_MAGIC));
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_ccib.c:1670: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).
	if (memcmp(rpc2->r2_ver, GFCC_RPC2_VER, strlen(GFCC_RPC2_VER))) {
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_ccib.c:1968:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memcpy(rpc2->r2_ver, GFCC_RPC2_VER, strlen(GFCC_RPC2_VER));
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_if.c:86: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(hostname) >= sizeof(inarg.r_hostname)) {
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_if.c:104: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(user) >= sizeof(inarg.r_global)) {
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_if.c:108:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (ug_map_name_to_uid(user, strlen(user), &inarg.r_uid)) {
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_if.c:112:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (source_ip && strlen(source_ip) >= sizeof(inarg.r_source_ip)) {
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_if.c:155: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(hostname) >= sizeof(inarg->r_hostname)) {
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_if.c:160: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(user) >= sizeof(inarg->r_global)) {
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_if.c:164:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (source_ip && strlen(source_ip) >= sizeof(inarg->r_source_ip)) {
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_ioapi.c:294:1:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
read(int fd, void *buf, size_t count)
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_ioapi.c:307:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (file->f_op->read)
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_ioapi.c:308:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			err = file->f_op->read(file, buf, count, &pos);
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_ioapi.c:370:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (file->f_op->read)
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_ioapi.c:371:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			err = file->f_op->read(file, buf, count, &pos);
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_libgfarm.c:239:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ret = ug_map_name_to_uid(stp->st_user, strlen(stp->st_user),
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_libgfarm.c:243: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).
	ret = ug_map_name_to_gid(stp->st_group, strlen(stp->st_group),
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_netdb.c:75: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).
	if (alias && *alias && strlen(*alias) < data->len) {
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_netdb.c:113:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(alias[0]);
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_netdb.c:214:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(bp);
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_netdb.c:296:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((err = ug_map_name_to_uid(name, strlen(name), &uid)) < 0) {
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_netdb.c:298: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).
	} else if (strlen(name) >= buflen) {
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_netdb.c:341:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((err = ug_map_name_to_gid(name, strlen(name), &gid)) < 0) {
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_netdb.c:343: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).
	} else if (strlen(name) >= buflen) {
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_proc.c:37:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = op->read(kbuf, size, *_pos, op);
data/gfarm-2.7.17+dfsg/linux/kernel/gfsk_proc.h:7:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int	(*read)(char *, int, loff_t, struct gfsk_procop*);
data/gfarm-2.7.17+dfsg/linux/kernel/ug_idmap.c:126:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		buf += strlen(buf) + 1;
data/gfarm-2.7.17+dfsg/linux/kernel/ug_idmap.c:408:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(name) >= sizeof(key.name)) {
data/gfarm-2.7.17+dfsg/linux/kernel/ug_idmap.c:950: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).
	ret = strlen(item->name);
data/gfarm-2.7.17+dfsg/linux/kernel/usr/unistd.h:18:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
ssize_t read(int fd, void *buf, size_t count);
data/gfarm-2.7.17+dfsg/linux/ugidmapd/idmapd.c:130:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	write(fd, stime, strlen(stime));
data/gfarm-2.7.17+dfsg/linux/ugidmapd/idmapd.c:440:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(pipefds[0], &status, 1) != 1)
data/gfarm-2.7.17+dfsg/linux/ugidmapd/idmapd.c:552:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((len = read(ic->ic_fd, buf, sizeof(buf))) <= 0) {
data/gfarm-2.7.17+dfsg/linux/ugidmapd/idmapd.c:676:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((len = read(ic->ic_fd, buf, sizeof(buf))) <= 0) {
data/gfarm-2.7.17+dfsg/linux/ugidmapd/idmapd.c:781: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(nobodyuser) >= sizeof(((struct idmap_msg *)0)->im_name))
data/gfarm-2.7.17+dfsg/linux/ugidmapd/idmapd.c:787: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(nobodygroup) >= sizeof(((struct idmap_msg *)0)->im_name))
data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfm_inode_or_name_op_test/gfm_inode_or_name_op_test.c:77:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	assert(strlen(f->name) > 0 || stat_or_open);
data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfm_inode_or_name_op_test/gfm_inode_or_name_op_test.c:85:3:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		strlen(name), GFARM_FILE_RDONLY)) != GFARM_ERR_NO_ERROR) {
data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfm_inode_or_name_op_test/gfm_inode_or_name_op_test.c:288:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(c->f1.name, ".");
data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfm_inode_or_name_op_test/gfm_inode_or_name_op_test.c:498:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		assert(strlen(closure.f1.name) > 0);
data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfm_inode_or_name_op_test/gfm_inode_or_name_op_test.c:528:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		assert(strlen(closure.f1.name) > 0);
data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfs_pio_stat/gfs_stat_pio_stat_consistency.c:142:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while ((sz = read(0, buf, sizeof buf)) > 0) {
data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfs_pio_test/gfs_pio_test.c:256:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				rv = read(0, buffer + done,
data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfs_pio_test/gfs_pio_test.c:429:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				rv = read(0, buffer, sizeof buffer);
data/gfarm-2.7.17+dfsg/regress/lib/libgfarm/gfarm/gfs_xattr/test_gfxattr.c:60:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((sz = read(fd, buf + msg_sz, count)) > 0) {
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/benchmark.c:131:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ssize_t readlen = read(fd, readBuffer, iosize);
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/mmap.c:12: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(writedata) < strlen(updatedata)) {
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/mmap.c:12: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).
	if (strlen(writedata) < strlen(updatedata)) {
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/mmap.c:16: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(bufdata) != strlen(writedata)) {
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/mmap.c:16: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).
	if (strlen(bufdata) != strlen(writedata)) {
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/mmap.c:20: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).
	if (updateoffset < 0 || strlen(writedata) <= updateoffset) {
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/mmap.c:34:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t writelen = strlen(writedata);
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/mmap.c:66:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memcpy(mreaddata + updateoffset, updatedata, strlen(updatedata));
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/readwrite.c:65:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ssize_t readlen = read(fd, readdata + i, 1);
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/readwrite.c:148:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ssize_t readlen = read(fd, readdata, filesize);
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/readwrite.c:203:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ssize_t readlen = read(fd, readdata, writelen);
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/readwrite.c:229: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 writelen2 = strlen(writedata2);
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/readwrite.c:242:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t filesize = strlen(answerdata);
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/readwrite.c:324: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 writelen2 = strlen(writedata2);
data/gfarm-2.7.17+dfsg/regress/linux/kernel/src/truncate.c:81: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(readdata) == newlen) {
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:165:2:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	getchar();
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:224:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rv = read(fd, buf, len);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:250: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).
	sz1 = strlen(TEXT1);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:285: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).
	sz = strlen(TEXT1);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:1230: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).
	sz = strlen(TEXT2);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:1259: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).
	size_t sz1 = strlen(TEXT1), sz2 = strlen(TEXT2);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:1259: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).
	size_t sz1 = strlen(TEXT1), sz2 = strlen(TEXT2);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:1285: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).
	sz2 = strlen(TEXT2);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:1371: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).
	sz = strlen(TEXT1);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:1403: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).
	sz = strlen(TEXT1);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:1428: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).
	size_t sz = strlen(TEXT1);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:1462: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).
	size_t sz = strlen(TEXT1);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:1493: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).
	sz = strlen(TEXT1);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2170:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(300 * 1000);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2238:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int chunksz = strlen(TEXT1);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2314:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(300 * 1000);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2460: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).
	size_t sz = strlen(val0);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2503: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).
	size_t sz = strlen(val0);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2574: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).
	size_t sz = strlen(val);
data/gfarm-2.7.17+dfsg/regress/manual/lib/libgfarm/gfarm/gfs_pio_failover/gfs_pio_failover_test.c:2597: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).
	size_t sz = strlen(val);
data/gfarm-2.7.17+dfsg/regress/manual/server/gfsd/fo_notify_test/fo_notify_test.c:75:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	namelen = strlen(new_master_host);
data/gfarm-2.7.17+dfsg/regress/server/gfmd/db_journal/db_journal_test.c:104: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).
	size_t len = strlen(data);
data/gfarm-2.7.17+dfsg/regress/server/gfmd/db_journal/db_journal_test.c:1469:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    strlen("sum"), /* len */
data/gfarm-2.7.17+dfsg/regress/server/gfmd/db_journal/db_journal_test.c:1479: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).
	TEST_ASSERT_L("len", strlen("sum"), m->len);
data/gfarm-2.7.17+dfsg/regress/server/gfmd/db_journal/db_journal_test.c:1665:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    strlen("entry_name"), /* entry_len */
data/gfarm-2.7.17+dfsg/regress/server/gfmd/db_journal/db_journal_test.c:1675: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).
	TEST_ASSERT_L("entry_len", strlen("entry_name"), m->entry_len);
data/gfarm-2.7.17+dfsg/regress/server/gfmd/db_journal/db_journal_test.c:1764:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    strlen("value") /* size */
data/gfarm-2.7.17+dfsg/regress/server/gfmd/db_journal/db_journal_test.c:1775:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    strncmp("value", m->value, strlen("value")) == 0);
data/gfarm-2.7.17+dfsg/regress/server/gfmd/db_journal/db_journal_test.c:1776: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).
	TEST_ASSERT_L("size", strlen("value"), m->size);
data/gfarm-2.7.17+dfsg/regress/server/gfmd/db_journal/db_journal_test.c:2916: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).
	m.entry_len = strlen(entry_name);
data/gfarm-2.7.17+dfsg/regress/server/gfmd/db_journal/db_journal_test.c:2953: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).
	m.entry_len = strlen(entry_name);
data/gfarm-2.7.17+dfsg/regress/server/gfmd/db_journal/db_journal_test.c:3011:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	m.size = strlen(value);
data/gfarm-2.7.17+dfsg/regress/server/gfmd/db_journal/db_journal_test.c:3036:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	m.size = strlen(value);
data/gfarm-2.7.17+dfsg/regress/server/gfmd/db_journal/db_journal_test.c:3046:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    strlen(value), value_len);
data/gfarm-2.7.17+dfsg/regress/server/gfmd/db_journal/db_journal_test.c:3065:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	m.size = strlen(value);
data/gfarm-2.7.17+dfsg/regress/server/gfmd/db_journal/db_journal_test.c:3090:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	m.size = strlen(value);
data/gfarm-2.7.17+dfsg/regress/server/gfmd/db_journal/db_journal_test.c:3100:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    strlen(value), value_len);
data/gfarm-2.7.17+dfsg/regress/server/gfmd/db_journal/db_journal_test.c:3167:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	m.size = strlen(value1);
data/gfarm-2.7.17+dfsg/regress/server/gfmd/db_journal/db_journal_test.c:3174:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	m.size = strlen(value2);
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:524:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t hsize = strlen(hi->hostname) + 1;
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:525:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t asize = strlen(hi->architecture) + 1;
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:635: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).
	hsize = gfarm_size_add(&of, strlen(hostname), 1);
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:639: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).
		1 : gfarm_size_add(&of, strlen(fsngroupname), 1);
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:679:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t usize = strlen(ui->username) + 1;
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:680:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t rsize = strlen(ui->realname) + 1;
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:681:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t hsize = strlen(ui->homedir) + 1;
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:682:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t gsize = strlen(ui->gsi_dn) + 1;
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:772:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t gsize = strlen(gi->groupname) + 1;
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:785:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    strlen(gi->usernames[i]) + 1);
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:806:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		users_size += strlen(gi->usernames[i]) + 1;
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:847:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    strlen(add_users[i]) + 1);
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:850:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    strlen(del_users[i]) + 1);
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:869:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		users_size += strlen(add_users[i]) + 1;
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:873:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		users_size += strlen(del_users[i]) + 1;
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:930:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t usize = strlen(st->st_user) + 1;
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:931:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t gsize = strlen(st->st_group) + 1;
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:1082: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).
		gfarm_size_add(&overflow, strlen(str), 1));
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:1185:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t tsize = strlen(type) + 1;
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:1284:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t hsize = strlen(hostname) + 1;
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:1371:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t hsize = strlen(hostname) + 1;
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:1549:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	sz = gfarm_size_add(&overflow, sizeof(*arg), strlen(source_path) + 1);
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:1618:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size = gfarm_size_add(&overflow, size, strlen(attrname) + 1);
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:1801:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int name_len = strlen(name);
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:1859:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int name_len = strlen(name);
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:1936:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t usize = strlen(username) + 1;
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:1937:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t dsize = strlen(dirsetname) + 1;
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:2104:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t nsize = strlen(ms->name) + 1;
data/gfarm-2.7.17+dfsg/server/gfmd/db_access.c:2105:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t csize = ms->clustername ? strlen(ms->clustername) + 1 : 0;
data/gfarm-2.7.17+dfsg/server/gfmd/db_journal.c:2190: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).
		arg->len = strlen(arg->sum);
data/gfarm-2.7.17+dfsg/server/gfmd/db_journal.c:2493:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	arg->entry_len = strlen(arg->entry_name);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1201: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).
	GFARM_MALLOC_ARRAY(dn, strlen(gfarm_ldap_host_info_ops.dn_template) +
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1202:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    strlen(key->hostname) + strlen(gfarm_ldap_base_dn) + 1);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1202: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).
	    strlen(key->hostname) + strlen(gfarm_ldap_base_dn) + 1);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1408: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).
	GFARM_MALLOC_ARRAY(dn, strlen(gfarm_ldap_user_info_ops.dn_template) +
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1409:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    strlen(key->username) + strlen(gfarm_ldap_base_dn) + 1);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1409: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).
	    strlen(key->username) + strlen(gfarm_ldap_base_dn) + 1);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1571: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).
	GFARM_MALLOC_ARRAY(dn, strlen(gfarm_ldap_group_info_ops.dn_template) +
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1572:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    strlen(key->groupname) + strlen(gfarm_ldap_base_dn) + 1);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1572:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    strlen(key->groupname) + strlen(gfarm_ldap_base_dn) + 1);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1718: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).
	GFARM_MALLOC_ARRAY(dn, strlen(gfarm_ldap_gfs_stat_ops.dn_template) +
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:1719: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).
	    INT64STRLEN + strlen(gfarm_ldap_base_dn) + 1);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2126: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).
			info->len = strlen(info->sum);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2244: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).
	GFARM_MALLOC_ARRAY(dn, strlen(gfarm_ldap_db_filecopy_ops.dn_template)
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2245:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    + strlen(key->hostname) + INT64STRLEN +
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2246:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    + strlen(gfarm_ldap_base_dn) + 1);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2352: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).
	GFARM_MALLOC_ARRAY(dn, strlen(ldap_hostname_dn_template)
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2353:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    + strlen(key) + strlen(gfarm_ldap_base_dn) + 1);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2353: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).
	    + strlen(key) + strlen(gfarm_ldap_base_dn) + 1);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2409:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    strlen(gfarm_ldap_db_deadfilecopy_ops.dn_template) +
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2410:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    strlen(key->hostname) + INT64STRLEN +
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2411:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    strlen(gfarm_ldap_base_dn) + 1);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2618: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).
	GFARM_MALLOC_ARRAY(dn, strlen(gfarm_ldap_db_direntry_ops.dn_template) +
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2619:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    quoted_len + INT64STRLEN + strlen(gfarm_ldap_base_dn) + 1);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2649: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).
			info->entry_len = strlen(info->entry_name);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2895: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).
	GFARM_MALLOC_ARRAY(dn, strlen(gfarm_ldap_xattr_info_ops.dn_template) +
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2896:3:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		strlen(key->attrname) + INT64STRLEN
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2897:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		+ strlen(gfarm_ldap_base_dn) + 1);
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:2924: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).
			info->namelen = strlen(info->attrname) + 1;
data/gfarm-2.7.17+dfsg/server/gfmd/db_ldap.c:3060:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	GFARM_MALLOC_ARRAY(query_type, 64+INT64STRLEN+strlen(arg->attrname));
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:157: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).
			length += strlen(varnames[i]) + 3; /* var='' */
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:168: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).
		length += strlen(others);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:431:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    strlen(GFARM_PGSQL_ERRCODE_SHUTDOWN_PREFIX)) == 0) {
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:1380:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t sz = gfarm_size_add(&of, strlen(tablename), 2 + 32 + 1);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:1392: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).
			gfarm_size_add(&of, strlen(columns[i]), 2));
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2615: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).
	info->len = strlen(info->sum);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:2949: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).
	info->entry_len = strlen(info->entry_name);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3073: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).
	paramLengths[0] = strlen(paramValues[0]);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3074: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).
	paramLengths[1] = strlen(paramValues[1]);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3130: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).
	paramLengths[0] = strlen(paramValues[0]);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3131: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).
	paramLengths[1] = strlen(paramValues[1]);
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3269: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).
		info->attrsize = strlen(info->attrvalue) + 1;
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3347: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).
	info->namelen = strlen(info->attrname) + 1; // include '\0'
data/gfarm-2.7.17+dfsg/server/gfmd/db_pgsql.c:3413:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		info->namelen = strlen(info->attrname) + 1; /* include '\0' */
data/gfarm-2.7.17+dfsg/server/gfmd/dirset.c:104:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	GFARM_MALLOC_ARRAY(ds->dirsetname, strlen(dirsetname) + 1);
data/gfarm-2.7.17+dfsg/server/gfmd/dirset.c:320:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t userlen = strlen(username);
data/gfarm-2.7.17+dfsg/server/gfmd/dirset.c:321:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t dslen = strlen(ds->dirsetname);
data/gfarm-2.7.17+dfsg/server/gfmd/dirset.c:507: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).
	} else if (strlen(dirsetname) > GFARM_DIRSET_NAME_MAX) {
data/gfarm-2.7.17+dfsg/server/gfmd/failover_notify.c:60:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	namelen = strlen(gfarm_ctxp->metadb_server_name);
data/gfarm-2.7.17+dfsg/server/gfmd/failover_notify.c:104:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rv = read(sock, buffer, sizeof buffer);
data/gfarm-2.7.17+dfsg/server/gfmd/fs.c:456: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).
				path_len = strlen(parent_path) + 1 +
data/gfarm-2.7.17+dfsg/server/gfmd/fs.c:457:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				    strlen(name) + 1;
data/gfarm-2.7.17+dfsg/server/gfmd/fs.c:1678: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).
	} else if (strlen(cksum_type) > GFM_PROTO_CKSUM_TYPE_MAXLEN ||
data/gfarm-2.7.17+dfsg/server/gfmd/fs.c:2463:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			ok = dir_cursor_lookup(dir, key, strlen(key), cursorp);
data/gfarm-2.7.17+dfsg/server/gfmd/gfmd.c:2026:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(gfarm_iostat_gfmd_path) + 6 + 1 + 4 + 1;
data/gfarm-2.7.17+dfsg/server/gfmd/group.c:805: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).
	} else if (strlen(gi.groupname) > GFARM_GROUP_NAME_MAX) {
data/gfarm-2.7.17+dfsg/server/gfmd/host.c:1824: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(hi->hostname) > GFARM_HOST_NAME_MAX) {
data/gfarm-2.7.17+dfsg/server/gfmd/host.c:1829: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(hi->architecture) > GFARM_HOST_ARCHITECTURE_NAME_MAX) {
data/gfarm-2.7.17+dfsg/server/gfmd/host.c:1934: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(fsngroupname) > GFARM_CLUSTER_NAME_MAX) {
data/gfarm-2.7.17+dfsg/server/gfmd/host.c:2976: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 fsng_size = strlen(fsngroup) + 1;
data/gfarm-2.7.17+dfsg/server/gfmd/host.c:3018: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 fsng_size = strlen(fsngroup) + 1;
data/gfarm-2.7.17+dfsg/server/gfmd/inode.c:339:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    sizeof(*cs) - sizeof(cs->sum) + strlen(cksum_type) + 1, cksum_len);
data/gfarm-2.7.17+dfsg/server/gfmd/inode.c:398: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(cksum_type) > GFM_PROTO_CKSUM_TYPE_MAXLEN) {
data/gfarm-2.7.17+dfsg/server/gfmd/inode.c:3264:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen(name);
data/gfarm-2.7.17+dfsg/server/gfmd/inode.c:3528: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(source_path) > GFARM_PATH_MAX) {
data/gfarm-2.7.17+dfsg/server/gfmd/inode.c:4392: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).
	    "rename op", sname, strlen(sname)))
data/gfarm-2.7.17+dfsg/server/gfmd/inode.c:5351: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(s, "/");
data/gfarm-2.7.17+dfsg/server/gfmd/inode.c:5365: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).
			namelen = strlen(names[i]);
data/gfarm-2.7.17+dfsg/server/gfmd/inode.c:8296:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size += (strlen(entry->name) + 1);
data/gfarm-2.7.17+dfsg/server/gfmd/inode.c:8308:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(entry->name) + 1; // +1 is '\0'
data/gfarm-2.7.17+dfsg/server/gfmd/inode.c:8522:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    name, (int)strlen(name),
data/gfarm-2.7.17+dfsg/server/gfmd/journal_file.c:465:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if ((ssz = read(fd, buf, rsz)) < 0)
data/gfarm-2.7.17+dfsg/server/gfmd/mdhost.c:1227: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).
	if (ms->name == NULL || strlen(ms->name) == 0) {
data/gfarm-2.7.17+dfsg/server/gfmd/mdhost.c:1232: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(ms->name) > GFARM_HOST_NAME_MAX) {
data/gfarm-2.7.17+dfsg/server/gfmd/mdhost.c:1238:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    strlen(ms->clustername) > GFARM_CLUSTER_NAME_MAX) {
data/gfarm-2.7.17+dfsg/server/gfmd/peer.c:1271:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    strlen(peer->username) + 1 + strlen(hostname) + 1);
data/gfarm-2.7.17+dfsg/server/gfmd/peer.c:1271: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).
		    strlen(peer->username) + 1 + strlen(hostname) + 1);
data/gfarm-2.7.17+dfsg/server/gfmd/process.c:523: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).
		*keylenp = strlen(fo->u.d.key);
data/gfarm-2.7.17+dfsg/server/gfmd/user.c:884: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(ui->username) > GFARM_LOGIN_NAME_MAX ||
data/gfarm-2.7.17+dfsg/server/gfmd/user.c:885:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    strlen(ui->realname) > GFARM_USER_REALNAME_MAX ||
data/gfarm-2.7.17+dfsg/server/gfmd/user.c:886:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    strlen(ui->homedir) > GFARM_PATH_MAX ||
data/gfarm-2.7.17+dfsg/server/gfmd/user.c:887:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    strlen(ui->gsi_dn) > GFARM_USER_GSI_DN_MAX) {
data/gfarm-2.7.17+dfsg/server/gfmd/watcher.c:262:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rv = read(wrq->deq_fd, &event, sizeof event);
data/gfarm-2.7.17+dfsg/server/gfmd/xattr.c:165:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		   strlen(attrname) >= 6) {
data/gfarm-2.7.17+dfsg/server/gfmd/xattr.c:197:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int namelen = strlen(attrname);
data/gfarm-2.7.17+dfsg/server/gfmd/xattr.c:253:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		*sizep = strlen(repattr) + 1;
data/gfarm-2.7.17+dfsg/server/gfmd/xattr.c:1157:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	pathlen = (parent_path[0] == '\0') ? 0 : (strlen(parent_path) + 1);
data/gfarm-2.7.17+dfsg/server/gfmd/xattr.c:1197:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (dir_cursor_lookup(dir, subpath, strlen(subpath), &cursor)
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:251:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(&iostat_dirbuf[iostat_dirlen], name,
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:592:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rv = read(event_fd, dummy, sizeof dummy);
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:1620:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strncmp(root, path, strlen(root)) == 0)
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:1631: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).
		    diag, (int)strlen(path) + 1);
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:1632: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).
	for (pp = p + strlen(root) + 1; *pp; ++pp) {
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:1982:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t length = gfarm_spool_root_len[0] + 1 + strlen(relpath) + 1;
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:2000:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(gfarm_spool_root[i]);
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:2120:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	tail = strlen(path);
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:2204:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((sz = read(fd, buf, sizeof buf)) > 0
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:2776:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((sz = read(fd, data_buf, data_bufsize)) > 0) {
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:5017:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    strlen(cksum_type) > GFM_PROTO_CKSUM_TYPE_MAXLEN) {
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:5666: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).
	GFARM_MALLOC_ARRAY(aux, strlen(username)+1 + strlen(client_name)+1);
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:5666:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	GFARM_MALLOC_ARRAY(aux, strlen(username)+1 + strlen(client_name)+1);
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:6200:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ssize_t rv = read(rep->pipe_fd, &res, sz);
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:7033: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).
		s = strlen(gfarm_spool_root[i]);
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:7212:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(gfarm_iostat_gfsd_path) + 6; /* for port */
data/gfarm-2.7.17+dfsg/server/gfsd/gfsd.c:7214:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len += strlen(listen_addrname) + 1;
data/gfarm-2.7.17+dfsg/server/gfsd/loadavg.c:35:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rv = read(fd, buffer, sizeof(buffer) - 1);
data/gfarm-2.7.17+dfsg/server/gfsd/spck.c:416:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		GFARM_MALLOC_ARRAY(dir1, strlen(dir) + strlen(dp->d_name) + 2);
data/gfarm-2.7.17+dfsg/server/gfsd/spck.c:416: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).
		GFARM_MALLOC_ARRAY(dir1, strlen(dir) + strlen(dp->d_name) + 2);
data/gfarm-2.7.17+dfsg/server/gfsd/spck.c:425:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
			strcat(dir1, "/");
data/gfarm-2.7.17+dfsg/server/gfsd/statfs.c:32:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen(READONLY_CONFIG_TMP_DIR) + 1 /* / */
data/gfarm-2.7.17+dfsg/server/gfsd/statfs.c:33:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		+ strlen(prefix)
data/gfarm-2.7.17+dfsg/server/gfsd/statfs.c:34:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		+ strlen(canonical_self_name) + 1 /* _ */
data/gfarm-2.7.17+dfsg/server/gfsd/statfs.c:138:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	GFARM_MALLOC_ARRAY(testfile, strlen(path) + sizeof(TEST_FILE));
data/gfarm-2.7.17+dfsg/server/gfsd/write_verify.c:61:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		rv = read(fd, &bufp[done], sz - done);
data/gfarm-2.7.17+dfsg/server/gfsd/write_verify.c:181:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rv = read(write_verify_request_recv_fd, req, sizeof(*req));
data/gfarm-2.7.17+dfsg/server/gfsd/write_verify.c:488:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rv = read(fd, ringbuf_ptr, sz);
data/gfarm-2.7.17+dfsg/server/gfsd/write_verify.c:1079:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rv = read(fd, &header, sizeof(header));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/expand_node_name.c:24:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  fig = strlen(f);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/expand_node_name.c:148: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(nickdef) <= 0){
data/gfarm-2.7.17+dfsg/snmptool/glogger3/expand_node_name.c:174:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	p = p + strlen(rep[*c-49]);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/expand_node_name.c:261: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(nodedef) == 0){
data/gfarm-2.7.17+dfsg/snmptool/glogger3/expand_node_name.c:266:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  tmpname = (char*) calloc(strlen(nodedef)+1, sizeof(char));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:320: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).
  ip = (char*) calloc(1, strlen(inet_ntoa(*(struct in_addr*)he->h_addr))+1);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:554:2:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	strlen(htmp->ip) + 1 +
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:555:2:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	strlen(htmp->fqdn) + 1 +
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:556:2:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	strlen(htmp->nick) + 1 +
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:557:2:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	strlen(htmp->community) + 1;
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:568:2:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	strlen(otmp->oidname) + 1 +
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:569:2:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	strlen(otmp->nick) + 1;
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:811: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).
      len = strlen(hdef->ip)+1;
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:814: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).
      len = strlen(hdef->fqdn)+1;
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:817: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).
      len = strlen(hdef->nick)+1;
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:820: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).
      len = strlen(hdef->community)+1;
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:830: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).
      len = strlen(odef->oidname)+1;
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:833: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).
      len = strlen(odef->nick)+1;
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:956:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if(MAXPATH <= strlen(dst)){
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:968:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(dst, tmp, MAXPATH - strlen(dst));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:968: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).
	strncat(dst, tmp, MAXPATH - strlen(dst));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:972:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(dst, tmp, MAXPATH - strlen(dst));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:972: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).
	strncat(dst, tmp, MAXPATH - strlen(dst));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:976:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(dst, tmp, MAXPATH - strlen(dst));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:976: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).
	strncat(dst, tmp, MAXPATH - strlen(dst));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:980:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(dst, tmp, MAXPATH - strlen(dst));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:980: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).
	strncat(dst, tmp, MAXPATH - strlen(dst));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:984:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(dst, tmp, MAXPATH - strlen(dst));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:984: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).
	strncat(dst, tmp, MAXPATH - strlen(dst));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:988:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(dst, tmp, MAXPATH - strlen(dst));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:988: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).
	strncat(dst, tmp, MAXPATH - strlen(dst));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:992:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(dst, tmp, MAXPATH - strlen(dst));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:992: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).
	strncat(dst, tmp, MAXPATH - strlen(dst));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:996:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(dst, tmp, MAXPATH - strlen(dst));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:996: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).
	strncat(dst, tmp, MAXPATH - strlen(dst));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:1000:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(dst, tmp, MAXPATH - strlen(dst));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:1000: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).
	strncat(dst, tmp, MAXPATH - strlen(dst));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:1004:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(dst, tmp, MAXPATH - strlen(dst));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:1004: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).
	strncat(dst, tmp, MAXPATH - strlen(dst));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:1010:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      i = strlen(dst);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:1033:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    file->nowpath = calloc(1, strlen(path)+1);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/prepare_files.c:1086:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if(read(now->fd, &c, 1) == -1){
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:117:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(requests_path, global_path, MAXPATH);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:118:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(requests_community, global_community, MAXCOMMLEN);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:123:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(mib_path, requests_path, MAXPATH);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:252:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if(MAXPATH <= strlen(dst)){
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:261:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(dst, global_defaultdir, MAXPATH - strlen(dst));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:261:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	strncat(dst, global_defaultdir, MAXPATH - strlen(dst));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:264:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(dst, global_label, MAXPATH - strlen(dst));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:264:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	strncat(dst, global_label, MAXPATH - strlen(dst));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:267:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(dst, nodes->nodename, MAXPATH - strlen(dst));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:267: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).
	strncat(dst, nodes->nodename, MAXPATH - strlen(dst));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:270:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(dst, nodes->nodenick, MAXPATH - strlen(dst));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:270: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).
	strncat(dst, nodes->nodenick, MAXPATH - strlen(dst));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:273:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(dst, oids->oidname, MAXPATH - strlen(dst));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:273:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	strncat(dst, oids->oidname, MAXPATH - strlen(dst));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:276:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(dst, oids->oidnick, MAXPATH - strlen(dst));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:276:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	strncat(dst, oids->oidnick, MAXPATH - strlen(dst));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:289:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(dst, tmp, MAXPATH - strlen(dst));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:289: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).
	strncat(dst, tmp, MAXPATH - strlen(dst));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:293: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).
	i = strlen(dst);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:302:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      i = strlen(dst);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:316: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(val) >= MAXPATH){
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:320:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(global_path, val, MAXPATH);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:335:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(global_defaultdir, val, MAXDEFAULTDIRLEN);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:341:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(global_overwrite, val, MAXOVERWRITELEN);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:346:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(global_fsync, val, MAXFSYNCLEN);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:368:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(global_label, val, MAXLABELLEN);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:371:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(global_community, val, MAXCOMMLEN);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:383: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(val) >= MAXPATH){
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:387:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(requests_path, val, MAXPATH);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:402:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(requests_community, val, MAXCOMMLEN);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:413: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(val) >= MAXPATH){
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:417:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(mib_path, val, MAXPATH);
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:609:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  community_for_set = (char*) calloc(strlen(requests_community)+1,
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:730: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).
      name = (char*) calloc(strlen(s.a)+1, sizeof(char));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:731: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).
      nick = (char*) calloc(strlen(s.b)+1, sizeof(char));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:807:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    name = (char*) calloc(strlen(s.a)+1, sizeof(char));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:808: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).
    nick = (char*) calloc(strlen(s.b)+1, sizeof(char));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/read_glogger_conf.c:809: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).
    rule = (char*) calloc(strlen(mib_path)+1, sizeof(char));
data/gfarm-2.7.17+dfsg/snmptool/glogger3/set_options.c:51:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if(strncmp(*argv, OPT_CONFIG, strlen(OPT_CONFIG)) == 0){
data/gfarm-2.7.17+dfsg/snmptool/glogger3/set_options.c:57:54:  [1] (buffer) strlen:
  Does not handle 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(opt.pidfile != NULL && (strncmp(*argv, "-", strlen(*argv)) == 0) ){
data/gfarm-2.7.17+dfsg/snmptool/glogger3/set_options.c:68:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    else if(strncmp(*argv, OPT_BUFMODE, strlen(OPT_BUFMODE)) == 0){
data/gfarm-2.7.17+dfsg/snmptool/glogger3/set_options.c:77:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    else if(strncmp(*argv, OPT_BURSTMODE, strlen(OPT_BURSTMODE)) == 0){
data/gfarm-2.7.17+dfsg/snmptool/glogger3/set_options.c:87: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).
    else if(strncmp(*argv, OPT_MMAPMODE, strlen(OPT_MMAPMODE)) == 0){
data/gfarm-2.7.17+dfsg/snmptool/glogger3/set_options.c:97:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    else if(strncmp(*argv, OPT_MAXSIZE, strlen(OPT_MAXSIZE)) == 0){
data/gfarm-2.7.17+dfsg/snmptool/glogger3/set_options.c:106:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    else if(strncmp(*argv, OPT_CHECKCONF, strlen(OPT_CHECKCONF)) == 0){
data/gfarm-2.7.17+dfsg/snmptool/glogger3/set_options.c:111:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    else if(strncmp(*argv, "-asyncget", strlen(*argv)) == 0){
data/gfarm-2.7.17+dfsg/snmptool/glogger3/set_options.c:116:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    else if(strncmp(*argv, OPT_DAEMON, strlen(OPT_DAEMON)) == 0){
data/gfarm-2.7.17+dfsg/snmptool/glogger3/set_options.c:122:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if(strncmp(opt.conffile, "-", strlen(opt.conffile)) == 0){
data/gfarm-2.7.17+dfsg/snmptool/glogger3/snmpasync.c:279: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).
    sess.community_len = strlen(sess.community);
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/cmd/main.cpp:392: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).
        sPasswdLen = strlen(sPasswd);
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/Process.h:758:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    (void)read(0, (void *)&pid, sizeof(pid_t));
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/Process.h:804:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    if (read(mChildOutFd[0], (void *)&pid, sizeof(pid_t)) !=
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/Process.h:982:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return read(0, buf, nBytes);
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/Process.h:1059:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return read(mChildOutFd[0], buf, nBytes);
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/Process.h:1093:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return read(mChildErrFd[0], buf, nBytes);
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/include/nata/nata_safe_syscall.h:42:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define read	nata_safe_Read
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_safe_syscall.cpp:167:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ret = read(fd, buf, nBytes);
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_util.cpp:792:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    rn = read(src, copyBuf, 65536);
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_util.cpp:870:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(buf);
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_util.cpp:893:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        n = read(fd, (void *)(buf + ret), len - ret);
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_util.cpp:1133:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(buf);
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_util.cpp:1139:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(buf);
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_util.cpp:1183:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            len = strlen(buf);
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_util.cpp:1315:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(str);
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_util.cpp:1337:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(str);
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_util.cpp:1359:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(str);
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_util.cpp:1390:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(tmp) == 0) {
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_util.cpp:1444:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(tmpHostPortPtr) != 0) {
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_util.cpp:1502:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(tmp) == 0) {
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_util.cpp:1614:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t consLen = sizeof(char) * (strlen(path) + 1);
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_util.cpp:1629: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).
            tknLen = strlen(tokens[i]);
data/gfarm-2.7.17+dfsg/util/grid-proxy-agent/src/lib/nata_util.cpp:1854:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(tmp2);

ANALYSIS SUMMARY:

Hits = 2328
Lines analyzed = 234186 in approximately 5.33 seconds (43977 lines/second)
Physical Source Lines of Code (SLOC) = 195597
Hits@level = [0] 2784 [1] 652 [2] 1035 [3] 293 [4] 326 [5]  22
Hits@level+ = [0+] 5112 [1+] 2328 [2+] 1676 [3+] 641 [4+] 348 [5+]  22
Hits/KSLOC@level+ = [0+] 26.1354 [1+] 11.902 [2+] 8.56864 [3+] 3.27715 [4+] 1.77917 [5+] 0.112476
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.