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/gfal2-2.18.2/doc/examples/gfal_copy.c
Examining data/gfal2-2.18.2/doc/examples/gfal_ls.c
Examining data/gfal2-2.18.2/doc/examples/gfal_stat.c
Examining data/gfal2-2.18.2/doc/examples/gfal_unlink.c
Examining data/gfal2-2.18.2/doc/src/API_CHANGE2.0.c
Examining data/gfal2-2.18.2/doc/src/EXAMPLES.c
Examining data/gfal2-2.18.2/doc/src/FAQ.c
Examining data/gfal2-2.18.2/doc/src/POSIX_API.c
Examining data/gfal2-2.18.2/doc/src/lib_design.c
Examining data/gfal2-2.18.2/doc/src/license.c
Examining data/gfal2-2.18.2/doc/src/mainpage.c
Examining data/gfal2-2.18.2/src/core/common/gfal_cancel.c
Examining data/gfal2-2.18.2/src/core/common/gfal_cancel.h
Examining data/gfal2-2.18.2/src/core/common/gfal_common.c
Examining data/gfal2-2.18.2/src/core/common/gfal_common.h
Examining data/gfal2-2.18.2/src/core/common/gfal_config.c
Examining data/gfal2-2.18.2/src/core/common/gfal_config.h
Examining data/gfal2-2.18.2/src/core/common/gfal_config_internal.h
Examining data/gfal2-2.18.2/src/core/common/gfal_constants.h
Examining data/gfal2-2.18.2/src/core/common/gfal_cred_mapping.c
Examining data/gfal2-2.18.2/src/core/common/gfal_cred_mapping.h
Examining data/gfal2-2.18.2/src/core/common/gfal_deprecated.h
Examining data/gfal2-2.18.2/src/core/common/gfal_error.c
Examining data/gfal2-2.18.2/src/core/common/gfal_error.h
Examining data/gfal2-2.18.2/src/core/common/gfal_file_handle.c
Examining data/gfal2-2.18.2/src/core/common/gfal_file_handle.h
Examining data/gfal2-2.18.2/src/core/common/gfal_file_handler_container.c
Examining data/gfal2-2.18.2/src/core/common/gfal_file_handler_container.h
Examining data/gfal2-2.18.2/src/core/common/gfal_handle.h
Examining data/gfal2-2.18.2/src/core/common/gfal_plugin.c
Examining data/gfal2-2.18.2/src/core/common/gfal_plugin.h
Examining data/gfal2-2.18.2/src/core/common/gfal_plugin_interface.h
Examining data/gfal2-2.18.2/src/core/file/gfal2_directory_operations.c
Examining data/gfal2-2.18.2/src/core/file/gfal2_read_write_file_operations.c
Examining data/gfal2-2.18.2/src/core/file/gfal2_standard_file_operations.c
Examining data/gfal2-2.18.2/src/core/file/gfal_file_api.h
Examining data/gfal2-2.18.2/src/core/future/glib.c
Examining data/gfal2-2.18.2/src/core/future/glib.h
Examining data/gfal2-2.18.2/src/core/gfal_api.h
Examining data/gfal2-2.18.2/src/core/gfal_plugins_api.h
Examining data/gfal2-2.18.2/src/core/logger/gfal_logger.c
Examining data/gfal2-2.18.2/src/core/logger/gfal_logger.h
Examining data/gfal2-2.18.2/src/core/posix/gfal_posix_api.h
Examining data/gfal2-2.18.2/src/core/posix/gfal_posix_ng.c
Examining data/gfal2-2.18.2/src/core/transfer/gfal_transfer.h
Examining data/gfal2-2.18.2/src/core/transfer/gfal_transfer_filecopy.c
Examining data/gfal2-2.18.2/src/core/transfer/gfal_transfer_internal.h
Examining data/gfal2-2.18.2/src/core/transfer/gfal_transfer_localcopy.c
Examining data/gfal2-2.18.2/src/core/transfer/gfal_transfer_params.c
Examining data/gfal2-2.18.2/src/core/transfer/gfal_transfer_plugins.h
Examining data/gfal2-2.18.2/src/core/transfer/gfal_transfer_util.c
Examining data/gfal2-2.18.2/src/plugins/dcap/gfal_dcap_plugin_bindings.c
Examining data/gfal2-2.18.2/src/plugins/dcap/gfal_dcap_plugin_bindings.h
Examining data/gfal2-2.18.2/src/plugins/dcap/gfal_dcap_plugin_layer.c
Examining data/gfal2-2.18.2/src/plugins/dcap/gfal_dcap_plugin_layer.h
Examining data/gfal2-2.18.2/src/plugins/dcap/gfal_dcap_plugin_main.c
Examining data/gfal2-2.18.2/src/plugins/dcap/gfal_dcap_plugin_main.h
Examining data/gfal2-2.18.2/src/plugins/file/gfal_file_plugin_main.c
Examining data/gfal2-2.18.2/src/plugins/gridftp/gridftp_bulk.cpp
Examining data/gfal2-2.18.2/src/plugins/gridftp/gridftp_dir_reader/GridFTPStreamBuffer.h
Examining data/gfal2-2.18.2/src/plugins/gridftp/gridftp_dir_reader/GridFtpDirReader.h
Examining data/gfal2-2.18.2/src/plugins/gridftp/gridftp_dir_reader/GridFtpListReader.cpp
Examining data/gfal2-2.18.2/src/plugins/gridftp/gridftp_dir_reader/GridFtpMlsdReader.cpp
Examining data/gfal2-2.18.2/src/plugins/gridftp/gridftp_dir_reader/GridFtpSimpleListReader.cpp
Examining data/gfal2-2.18.2/src/plugins/gridftp/gridftp_filecopy.cpp
Examining data/gfal2-2.18.2/src/plugins/gridftp/gridftp_filecopy.h
Examining data/gfal2-2.18.2/src/plugins/gridftp/gridftp_io.cpp
Examining data/gfal2-2.18.2/src/plugins/gridftp/gridftp_io.h
Examining data/gfal2-2.18.2/src/plugins/gridftp/gridftp_namespace.h
Examining data/gfal2-2.18.2/src/plugins/gridftp/gridftp_ns_checksum.cpp
Examining data/gfal2-2.18.2/src/plugins/gridftp/gridftp_ns_chmod.cpp
Examining data/gfal2-2.18.2/src/plugins/gridftp/gridftp_ns_exist.cpp
Examining data/gfal2-2.18.2/src/plugins/gridftp/gridftp_ns_mkdir.cpp
Examining data/gfal2-2.18.2/src/plugins/gridftp/gridftp_ns_opendir.cpp
Examining data/gfal2-2.18.2/src/plugins/gridftp/gridftp_ns_rename.cpp
Examining data/gfal2-2.18.2/src/plugins/gridftp/gridftp_ns_rmdir.cpp
Examining data/gfal2-2.18.2/src/plugins/gridftp/gridftp_ns_stat.cpp
Examining data/gfal2-2.18.2/src/plugins/gridftp/gridftp_ns_unlink.cpp
Examining data/gfal2-2.18.2/src/plugins/gridftp/gridftp_ns_xattr.cpp
Examining data/gfal2-2.18.2/src/plugins/gridftp/gridftp_parsing.cpp
Examining data/gfal2-2.18.2/src/plugins/gridftp/gridftp_parsing.h
Examining data/gfal2-2.18.2/src/plugins/gridftp/gridftp_pasv_plugin.cpp
Examining data/gfal2-2.18.2/src/plugins/gridftp/gridftp_pasv_plugin.h
Examining data/gfal2-2.18.2/src/plugins/gridftp/gridftp_plugin.cpp
Examining data/gfal2-2.18.2/src/plugins/gridftp/gridftp_plugin.h
Examining data/gfal2-2.18.2/src/plugins/gridftp/gridftpmodule.cpp
Examining data/gfal2-2.18.2/src/plugins/gridftp/gridftpmodule.h
Examining data/gfal2-2.18.2/src/plugins/gridftp/gridftpwrapper.cpp
Examining data/gfal2-2.18.2/src/plugins/gridftp/gridftpwrapper.h
Examining data/gfal2-2.18.2/src/plugins/http/gfal_http_copy.cpp
Examining data/gfal2-2.18.2/src/plugins/http/gfal_http_plugin.cpp
Examining data/gfal2-2.18.2/src/plugins/http/gfal_http_plugin.h
Examining data/gfal2-2.18.2/src/plugins/http/gfal_http_plugin_io.cpp
Examining data/gfal2-2.18.2/src/plugins/http/gfal_http_plugin_metadata.cpp
Examining data/gfal2-2.18.2/src/plugins/http/gfal_http_qos.cpp
Examining data/gfal2-2.18.2/src/plugins/lfc/gfal_lfc.c
Examining data/gfal2-2.18.2/src/plugins/lfc/gfal_lfc.h
Examining data/gfal2-2.18.2/src/plugins/lfc/gfal_lfc_open.c
Examining data/gfal2-2.18.2/src/plugins/lfc/gfal_lfc_open.h
Examining data/gfal2-2.18.2/src/plugins/lfc/lfc_ifce_ng.c
Examining data/gfal2-2.18.2/src/plugins/lfc/lfc_ifce_ng.h
Examining data/gfal2-2.18.2/src/plugins/lfc/lfc_register.c
Examining data/gfal2-2.18.2/src/plugins/mock/gfal_mock_dir.c
Examining data/gfal2-2.18.2/src/plugins/mock/gfal_mock_file.c
Examining data/gfal2-2.18.2/src/plugins/mock/gfal_mock_metadata.c
Examining data/gfal2-2.18.2/src/plugins/mock/gfal_mock_plugin.h
Examining data/gfal2-2.18.2/src/plugins/mock/gfal_mock_plugin_main.c
Examining data/gfal2-2.18.2/src/plugins/mock/gfal_mock_staging.c
Examining data/gfal2-2.18.2/src/plugins/mock/gfal_mock_transfer.c
Examining data/gfal2-2.18.2/src/plugins/rfio/gfal_rfio_plugin_bindings.c
Examining data/gfal2-2.18.2/src/plugins/rfio/gfal_rfio_plugin_bindings.h
Examining data/gfal2-2.18.2/src/plugins/rfio/gfal_rfio_plugin_layer.c
Examining data/gfal2-2.18.2/src/plugins/rfio/gfal_rfio_plugin_layer.h
Examining data/gfal2-2.18.2/src/plugins/rfio/gfal_rfio_plugin_main.c
Examining data/gfal2-2.18.2/src/plugins/rfio/gfal_rfio_plugin_main.h
Examining data/gfal2-2.18.2/src/plugins/sftp/gfal_sftp_connection.c
Examining data/gfal2-2.18.2/src/plugins/sftp/gfal_sftp_connection.h
Examining data/gfal2-2.18.2/src/plugins/sftp/gfal_sftp_dir.c
Examining data/gfal2-2.18.2/src/plugins/sftp/gfal_sftp_io.c
Examining data/gfal2-2.18.2/src/plugins/sftp/gfal_sftp_metadata.c
Examining data/gfal2-2.18.2/src/plugins/sftp/gfal_sftp_plugin.c
Examining data/gfal2-2.18.2/src/plugins/sftp/gfal_sftp_plugin.h
Examining data/gfal2-2.18.2/src/plugins/srm/gfal_srm.c
Examining data/gfal2-2.18.2/src/plugins/srm/gfal_srm.h
Examining data/gfal2-2.18.2/src/plugins/srm/gfal_srm_access.c
Examining data/gfal2-2.18.2/src/plugins/srm/gfal_srm_bringonline.c
Examining data/gfal2-2.18.2/src/plugins/srm/gfal_srm_bringonline.h
Examining data/gfal2-2.18.2/src/plugins/srm/gfal_srm_checksum.c
Examining data/gfal2-2.18.2/src/plugins/srm/gfal_srm_chmod.c
Examining data/gfal2-2.18.2/src/plugins/srm/gfal_srm_copy.c
Examining data/gfal2-2.18.2/src/plugins/srm/gfal_srm_copy.h
Examining data/gfal2-2.18.2/src/plugins/srm/gfal_srm_endpoint.c
Examining data/gfal2-2.18.2/src/plugins/srm/gfal_srm_endpoint.h
Examining data/gfal2-2.18.2/src/plugins/srm/gfal_srm_getput.c
Examining data/gfal2-2.18.2/src/plugins/srm/gfal_srm_getput.h
Examining data/gfal2-2.18.2/src/plugins/srm/gfal_srm_getxattr.c
Examining data/gfal2-2.18.2/src/plugins/srm/gfal_srm_getxattr_status.c
Examining data/gfal2-2.18.2/src/plugins/srm/gfal_srm_internal_layer.c
Examining data/gfal2-2.18.2/src/plugins/srm/gfal_srm_internal_layer.h
Examining data/gfal2-2.18.2/src/plugins/srm/gfal_srm_internal_ls.c
Examining data/gfal2-2.18.2/src/plugins/srm/gfal_srm_internal_ls.h
Examining data/gfal2-2.18.2/src/plugins/srm/gfal_srm_mkdir.c
Examining data/gfal2-2.18.2/src/plugins/srm/gfal_srm_namespace.h
Examining data/gfal2-2.18.2/src/plugins/srm/gfal_srm_open.c
Examining data/gfal2-2.18.2/src/plugins/srm/gfal_srm_open.h
Examining data/gfal2-2.18.2/src/plugins/srm/gfal_srm_opendir.c
Examining data/gfal2-2.18.2/src/plugins/srm/gfal_srm_opendir.h
Examining data/gfal2-2.18.2/src/plugins/srm/gfal_srm_readdir.c
Examining data/gfal2-2.18.2/src/plugins/srm/gfal_srm_rename.c
Examining data/gfal2-2.18.2/src/plugins/srm/gfal_srm_request.c
Examining data/gfal2-2.18.2/src/plugins/srm/gfal_srm_request.h
Examining data/gfal2-2.18.2/src/plugins/srm/gfal_srm_rm.c
Examining data/gfal2-2.18.2/src/plugins/srm/gfal_srm_rmdir.c
Examining data/gfal2-2.18.2/src/plugins/srm/gfal_srm_space.c
Examining data/gfal2-2.18.2/src/plugins/srm/gfal_srm_space.h
Examining data/gfal2-2.18.2/src/plugins/srm/gfal_srm_stat.c
Examining data/gfal2-2.18.2/src/plugins/srm/gfal_srm_url_check.c
Examining data/gfal2-2.18.2/src/plugins/srm/gfal_srm_url_check.h
Examining data/gfal2-2.18.2/src/plugins/xrootd/gfal_xrootd_plugin_3rd_copy.cpp
Examining data/gfal2-2.18.2/src/plugins/xrootd/gfal_xrootd_plugin_bringonline.cpp
Examining data/gfal2-2.18.2/src/plugins/xrootd/gfal_xrootd_plugin_interface.cpp
Examining data/gfal2-2.18.2/src/plugins/xrootd/gfal_xrootd_plugin_interface.h
Examining data/gfal2-2.18.2/src/plugins/xrootd/gfal_xrootd_plugin_main.cpp
Examining data/gfal2-2.18.2/src/plugins/xrootd/gfal_xrootd_plugin_main.h
Examining data/gfal2-2.18.2/src/plugins/xrootd/gfal_xrootd_plugin_space.cpp
Examining data/gfal2-2.18.2/src/plugins/xrootd/gfal_xrootd_plugin_utils.cpp
Examining data/gfal2-2.18.2/src/plugins/xrootd/gfal_xrootd_plugin_utils.h
Examining data/gfal2-2.18.2/src/utils/checksums/checksums.c
Examining data/gfal2-2.18.2/src/utils/checksums/checksums.h
Examining data/gfal2-2.18.2/src/utils/exceptions/cpp_to_gerror.hpp
Examining data/gfal2-2.18.2/src/utils/exceptions/gerror_to_cpp.cpp
Examining data/gfal2-2.18.2/src/utils/exceptions/gerror_to_cpp.h
Examining data/gfal2-2.18.2/src/utils/exceptions/gfalcoreexception.cpp
Examining data/gfal2-2.18.2/src/utils/exceptions/gfalcoreexception.hpp
Examining data/gfal2-2.18.2/src/utils/gsimplecache/gcachemain.c
Examining data/gfal2-2.18.2/src/utils/gsimplecache/gcachemain.h
Examining data/gfal2-2.18.2/src/utils/mds/gfal_mds.c
Examining data/gfal2-2.18.2/src/utils/mds/gfal_mds.h
Examining data/gfal2-2.18.2/src/utils/mds/gfal_mds_cache.cpp
Examining data/gfal2-2.18.2/src/utils/mds/gfal_mds_internal.c
Examining data/gfal2-2.18.2/src/utils/mds/gfal_mds_internal.h
Examining data/gfal2-2.18.2/src/utils/mds/gfal_mds_ldap_internal_layer.c
Examining data/gfal2-2.18.2/src/utils/mds/gfal_mds_ldap_internal_layer.h
Examining data/gfal2-2.18.2/src/utils/space/gfal2_space.c
Examining data/gfal2-2.18.2/src/utils/space/gfal2_space.h
Examining data/gfal2-2.18.2/src/utils/time_utils.h
Examining data/gfal2-2.18.2/src/utils/uri/gfal2_uri.c
Examining data/gfal2-2.18.2/src/utils/uri/gfal2_uri.h
Examining data/gfal2-2.18.2/src/version/gfal_version.c
Examining data/gfal2-2.18.2/test/common/gfal_gtest_asserts.cpp
Examining data/gfal2-2.18.2/test/common/gfal_gtest_asserts.h
Examining data/gfal2-2.18.2/test/common/gfal_lib_test.c
Examining data/gfal2-2.18.2/test/common/gfal_lib_test.h
Examining data/gfal2-2.18.2/test/functional/gfal_test_access.cpp
Examining data/gfal2-2.18.2/test/functional/gfal_test_bringonline.cpp
Examining data/gfal2-2.18.2/test/functional/gfal_test_checksum.cpp
Examining data/gfal2-2.18.2/test/functional/gfal_test_chmod.cpp
Examining data/gfal2-2.18.2/test/functional/gfal_test_del.cpp
Examining data/gfal2-2.18.2/test/functional/gfal_test_mkdir_full.cpp
Examining data/gfal2-2.18.2/test/functional/gfal_test_posix.cpp
Examining data/gfal2-2.18.2/test/functional/gfal_test_qos.cpp
Examining data/gfal2-2.18.2/test/functional/gfal_test_readdir_full.cpp
Examining data/gfal2-2.18.2/test/functional/gfal_test_register.cpp
Examining data/gfal2-2.18.2/test/functional/gfal_test_rename.cpp
Examining data/gfal2-2.18.2/test/functional/gfal_test_rmdir_full.cpp
Examining data/gfal2-2.18.2/test/functional/gfal_test_rw_full.cpp
Examining data/gfal2-2.18.2/test/functional/gfal_test_rw_seek.cpp
Examining data/gfal2-2.18.2/test/functional/gfal_test_rw_seq.cpp
Examining data/gfal2-2.18.2/test/functional/gfal_test_set_creds.cpp
Examining data/gfal2-2.18.2/test/functional/gfal_test_space.cpp
Examining data/gfal2-2.18.2/test/functional/gfal_test_stat.cpp
Examining data/gfal2-2.18.2/test/functional/gfal_test_xattr.cpp
Examining data/gfal2-2.18.2/test/functional/gfalt_test_copy_bulk.cpp
Examining data/gfal2-2.18.2/test/functional/gfalt_test_copy_file.cpp
Examining data/gfal2-2.18.2/test/functional/gfalt_test_copy_file_cancel.cpp
Examining data/gfal2-2.18.2/test/functional/gfalt_test_copy_file_checksum.cpp
Examining data/gfal2-2.18.2/test/functional/gfalt_test_copy_file_checksum_user.cpp
Examining data/gfal2-2.18.2/test/functional/gfalt_test_copy_file_mkdir.cpp
Examining data/gfal2-2.18.2/test/functional/gfalt_test_copy_file_replace.cpp
Examining data/gfal2-2.18.2/test/functional/gfalt_test_copy_file_timeout.cpp
Examining data/gfal2-2.18.2/test/functional/gfalt_test_double_cred.cpp
Examining data/gfal2-2.18.2/test/functional/gfalt_test_pasv.cpp
Examining data/gfal2-2.18.2/test/functional/gfalt_test_rd3_reorder_protocols.cpp
Examining data/gfal2-2.18.2/test/stress-test/gfalt_copyfile_fts_style_load_test.c
Examining data/gfal2-2.18.2/test/unit/cancel/cancel_tests.cpp
Examining data/gfal2-2.18.2/test/unit/config/config_test.cpp
Examining data/gfal2-2.18.2/test/unit/cred/test_cred.cpp
Examining data/gfal2-2.18.2/test/unit/global/global_test.cpp
Examining data/gfal2-2.18.2/test/unit/mds/test_mds.cpp
Examining data/gfal2-2.18.2/test/unit/transfer/tests_callbacks.cpp
Examining data/gfal2-2.18.2/test/unit/transfer/tests_params.cpp
Examining data/gfal2-2.18.2/test/unit/uri/test_uri.cpp

FINAL RESULTS:

data/gfal2-2.18.2/src/plugins/dcap/gfal_dcap_plugin_bindings.c:215:23:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    int ret = h->ops->chmod(name, mode);
data/gfal2-2.18.2/src/plugins/dcap/gfal_dcap_plugin_layer.h:36:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	int	(*chmod)(const char *, mode_t);
data/gfal2-2.18.2/src/plugins/file/gfal_file_plugin_main.c:134:21:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    const int res = chmod(path + FILE_PREFIX_LEN, mode);
data/gfal2-2.18.2/src/plugins/file/gfal_file_plugin_main.c:354:25:  [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.
    const ssize_t res = readlink(path + FILE_PREFIX_LEN, buff, buffsiz);
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_ns_chmod.cpp:28:21:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
void GridFTPModule::chmod(const char* path, mode_t mode)
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_ns_chmod.cpp:61:56:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
                (static_cast<GridFTPModule*>(handle))->chmod(path, mode);
data/gfal2-2.18.2/src/plugins/gridftp/gridftpmodule.h:46:10:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    void chmod(const char* path, mode_t mode);
data/gfal2-2.18.2/src/plugins/lfc/gfal_lfc.c:198:24:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
            ret = ops->chmod(url_path, mode);
data/gfal2-2.18.2/src/plugins/lfc/gfal_lfc.c:969:24:  [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.
            ret = ops->readlink(url_path, res_buff, LFC_BUFF_SIZE);
data/gfal2-2.18.2/src/plugins/lfc/lfc_ifce_ng.h:81:11:  [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.
    int (*readlink)(const char *, char *, size_t);
data/gfal2-2.18.2/src/plugins/lfc/lfc_ifce_ng.h:92:11:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    int (*chmod)(const char *, mode_t);
data/gfal2-2.18.2/src/plugins/rfio/gfal_rfio_plugin_layer.h:33:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	int	(*chmod)(const char *, mode_t);
data/gfal2-2.18.2/src/core/common/gfal_common.c:96:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(default_proxy, F_OK) == 0) {
data/gfal2-2.18.2/src/core/common/gfal_common.c:114:26:  [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.
        int canAccess = (access(default_cert, F_OK) == 0 && access(default_key, F_OK));
data/gfal2-2.18.2/src/core/common/gfal_common.c:114:61:  [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.
        int canAccess = (access(default_cert, F_OK) == 0 && access(default_key, F_OK));
data/gfal2-2.18.2/src/core/common/gfal_error.c:37:5:  [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, args);
data/gfal2-2.18.2/src/core/common/gfal_error.c:69: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.
        vsnprintf(buffer, sizeof(buffer), format, args);
data/gfal2-2.18.2/src/core/transfer/gfal_transfer_util.c:85: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.
        vsnprintf(buffer, sizeof(buffer), fmt, msg_args);
data/gfal2-2.18.2/src/core/transfer/gfal_transfer_util.c:168:5:  [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, args);
data/gfal2-2.18.2/src/plugins/dcap/gfal_dcap_plugin_bindings.c:192:27:  [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.
    ssize_t ret = h->ops->access(url, mode);
data/gfal2-2.18.2/src/plugins/dcap/gfal_dcap_plugin_layer.h:35:8:  [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.
	int	(*access)(const char *, int);
data/gfal2-2.18.2/src/plugins/file/gfal_file_plugin_main.c:124:21:  [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.
    const int res = access(path + FILE_PREFIX_LEN, amode);
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_ns_stat.cpp:42:21:  [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.
void GridFTPModule::access(const char* path, int mode)
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_ns_stat.cpp:188:48:  [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.
        (static_cast<GridFTPModule*>(handle))->access(name, mode);
data/gfal2-2.18.2/src/plugins/gridftp/gridftpmodule.h:43:10:  [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.
    void access(const char* path, int mode);
data/gfal2-2.18.2/src/plugins/http/gfal_http_qos.cpp:89:14:  [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).
        std::strcpy(buff, classes.c_str());
data/gfal2-2.18.2/src/plugins/http/gfal_http_qos.cpp:132:12:  [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).
      std::strcpy(buff, qos_class.c_str());
data/gfal2-2.18.2/src/plugins/http/gfal_http_qos.cpp:180:12:  [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).
      std::strcpy(buff, transitions.c_str());
data/gfal2-2.18.2/src/plugins/http/gfal_http_qos.cpp:264:12:  [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).
      std::strcpy(buff, target_qos.c_str());
data/gfal2-2.18.2/src/plugins/lfc/gfal_lfc.c:233:24:  [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.
            ret = ops->access(url_path, mode);
data/gfal2-2.18.2/src/plugins/lfc/lfc_ifce_ng.h:91:11:  [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.
    int (*access)(const char *, int);
data/gfal2-2.18.2/src/plugins/lfc/lfc_register.c:66:18:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (ops->access(dir, F_OK) != 0) {
data/gfal2-2.18.2/src/plugins/rfio/gfal_rfio_plugin_layer.h:32:8:  [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.
	int	(*access)(const char *, int);
data/gfal2-2.18.2/src/plugins/xrootd/gfal_xrootd_plugin_interface.cpp:303:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(buff,GFAL_XATTR_STATUS_NEARLINE_ONLINE);
data/gfal2-2.18.2/src/plugins/xrootd/gfal_xrootd_plugin_interface.cpp:307:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(buff,GFAL_XATTR_STATUS_NEARLINE);
data/gfal2-2.18.2/src/plugins/xrootd/gfal_xrootd_plugin_interface.cpp:311:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(buff,GFAL_XATTR_STATUS_ONLINE);
data/gfal2-2.18.2/src/plugins/xrootd/gfal_xrootd_plugin_interface.cpp:315:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(buff,GFAL_XATTR_STATUS_UNKNOWN);
data/gfal2-2.18.2/src/plugins/xrootd/gfal_xrootd_plugin_utils.cpp:253:5:  [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(err_msg, sizeof(err_msg), desc, args);
data/gfal2-2.18.2/src/utils/mds/gfal_mds_internal.c:306:4:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			snprintf(buff_filter, GFAL_URL_MAX_LEN, srm_endpoint_filter, base_url, base_url); // construct the request
data/gfal2-2.18.2/test/common/gfal_lib_test.c:91:18:  [4] (shell) popen:
  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.
    FILE *proc = popen(command, "r");
data/gfal2-2.18.2/src/core/common/gfal_common.c:82:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char *token = getenv("BEARER_TOKEN");
data/gfal2-2.18.2/src/core/common/gfal_common.c:88:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char *proxy = getenv("X509_USER_PROXY");
data/gfal2-2.18.2/src/core/common/gfal_common.c:102: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.
    cert = getenv("X509_USER_CERT");
data/gfal2-2.18.2/src/core/common/gfal_common.c:103: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.
    key = getenv("X509_USER_KEY");
data/gfal2-2.18.2/src/core/common/gfal_common.c:109:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char *home = getenv("HOME");
data/gfal2-2.18.2/src/plugins/gridftp/gridftpmodule.cpp:45:10:  [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("GLOBUS_THREAD_MODEL"))
data/gfal2-2.18.2/src/plugins/gridftp/gridftpwrapper.cpp:127:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv("GFAL2_GRIDFTP_DEBUG")) {
data/gfal2-2.18.2/src/plugins/lfc/lfc_ifce_ng.c:161:26:  [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.
    ops->env_user_cert = getenv("X509_USER_CERT");
data/gfal2-2.18.2/src/plugins/lfc/lfc_ifce_ng.c:162:25:  [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.
    ops->env_user_key = getenv("X509_USER_KEY");
data/gfal2-2.18.2/src/plugins/lfc/lfc_ifce_ng.c:163:27:  [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.
    ops->env_user_proxy = getenv("X509_USER_PROXY");
data/gfal2-2.18.2/src/plugins/rfio/gfal_rfio_plugin_layer.c:38: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.
	p = getenv ("LCG_RFIO_TYPE");
data/gfal2-2.18.2/src/plugins/sftp/gfal_sftp_connection.c:173:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (!*privkey && getenv("HOME")) {
data/gfal2-2.18.2/src/plugins/sftp/gfal_sftp_connection.c:174:32:  [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.
        *privkey = g_strconcat(getenv("HOME"), "/.ssh/id_rsa", NULL);
data/gfal2-2.18.2/src/plugins/srm/gfal_srm.c:45:10:  [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("GLOBUS_THREAD_MODEL"))
data/gfal2-2.18.2/src/utils/mds/gfal_mds_internal.c:245:28:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *bdii_var = g_strdup(getenv(bdii_env_var));
data/gfal2-2.18.2/test/functional/gfal_test_set_creds.cpp:77:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv("X509_USER_CERT") ||
data/gfal2-2.18.2/test/functional/gfal_test_set_creds.cpp:78:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        getenv("X509_USER_KEY") ||
data/gfal2-2.18.2/test/functional/gfal_test_set_creds.cpp:79:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        getenv("X509_USER_PROXY")) {
data/gfal2-2.18.2/test/functional/gfalt_test_double_cred.cpp:83:32:  [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.
        ASSERT_EQ((char*)NULL, getenv("X509_USER_CERT"));
data/gfal2-2.18.2/test/functional/gfalt_test_double_cred.cpp:84:32:  [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.
        ASSERT_EQ((char*)NULL, getenv("X509_USER_KEY"));
data/gfal2-2.18.2/test/functional/gfalt_test_double_cred.cpp:85:32:  [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.
        ASSERT_EQ((char*)NULL, getenv("X509_USER_PROXY"));
data/gfal2-2.18.2/test/functional/gfalt_test_double_cred.cpp:165:44:  [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.
        CopyDoubleCredTest::source_proxy = getenv("X509_USER_PROXY");
data/gfal2-2.18.2/test/functional/gfalt_test_double_cred.cpp:166:50:  [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.
        CopyDoubleCredTest::destination_proxy =  getenv("X509_USER_PROXY");
data/gfal2-2.18.2/src/core/common/gfal_common.c:94: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 default_proxy[64];
data/gfal2-2.18.2/src/core/common/gfal_error.c:34: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 buffer[512];
data/gfal2-2.18.2/src/core/common/gfal_error.c:66: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 buffer[512];
data/gfal2-2.18.2/src/core/common/gfal_file_handler_container.h:43:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char module_name[GFAL_MODULE_NAME_SIZE]; // This MUST be the Name of the plugin associated with this handle!
data/gfal2-2.18.2/src/core/common/gfal_plugin.h:53:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char plugin_name[GFAL_URL_MAX_LEN];                 /**< plugin name */
data/gfal2-2.18.2/src/core/common/gfal_plugin.h:54: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 plugin_lib[GFAL_URL_MAX_LEN];                  /**< plugin library path */
data/gfal2-2.18.2/src/core/file/gfal2_directory_operations.c:33: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(src, dst, len);
data/gfal2-2.18.2/src/core/file/gfal2_standard_file_operations.c:153: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 current_url[GFAL_URL_MAX_LEN];
data/gfal2-2.18.2/src/core/transfer/gfal_transfer_filecopy.c:161: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 chktype[64];
data/gfal2-2.18.2/src/core/transfer/gfal_transfer_localcopy.c:276: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 checksum_type[1024] = {0};
data/gfal2-2.18.2/src/core/transfer/gfal_transfer_localcopy.c:277: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 user_checksum[1024] = {0};
data/gfal2-2.18.2/src/core/transfer/gfal_transfer_localcopy.c:278:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char source_checksum[1024] = {0};
data/gfal2-2.18.2/src/core/transfer/gfal_transfer_localcopy.c:347: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 destination_checksum[1024];
data/gfal2-2.18.2/src/core/transfer/gfal_transfer_params.c:65:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(p, params, sizeof(struct _gfalt_params_t));
data/gfal2-2.18.2/src/core/transfer/gfal_transfer_util.c:81: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 buffer[512] = { 0 };
data/gfal2-2.18.2/src/core/transfer/gfal_transfer_util.c:165: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 buffer[1024];
data/gfal2-2.18.2/src/plugins/dcap/gfal_dcap_plugin_bindings.c:60:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buff_error[2048];
data/gfal2-2.18.2/src/plugins/dcap/gfal_dcap_plugin_bindings.c:75:22:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd = h->ops->open(path, internal_flag, mode);
data/gfal2-2.18.2/src/plugins/dcap/gfal_dcap_plugin_layer.h:44: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).
	int	(*open)(const char *, int, ...);
data/gfal2-2.18.2/src/plugins/file/gfal_file_plugin_main.c:268: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).
    const int ret = open(path + FILE_PREFIX_LEN, flag, mode);
data/gfal2-2.18.2/src/plugins/file/gfal_file_plugin_main.c:460: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.
    unsigned char buffer[16];
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_bulk.cpp:399:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char chk_type[32] = {0}, chk_value[128], dummy[1];
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_bulk.cpp:534: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 chk_type[32] = {0}, chk_value[128], dummy[1];
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_dir_reader/GridFTPStreamBuffer.h:31: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 buffer[4096];
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_filecopy.cpp:52: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 addrstr[100] = { 0 };
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_filecopy.cpp:53:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char ip4str[16] = { 0 };
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_filecopy.cpp:54: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 ip6str[46] = { 0 };
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_filecopy.cpp:148: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 err_buff[GFAL_ERRMSG_LEN];
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_filecopy.cpp:166: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 current_uri[GFAL_URL_MAX_LEN];
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_filecopy.cpp:511: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 checksum_type[GFAL_URL_MAX_LEN] = { 0 };
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_filecopy.cpp:512: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 checksum_user_defined[GFAL_URL_MAX_LEN];
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_filecopy.cpp:513: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 checksum_src[GFAL_URL_MAX_LEN] = { 0 };
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_filecopy.cpp:514:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char checksum_dst[GFAL_URL_MAX_LEN] = { 0 };
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_io.cpp:102: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 buffer[2];
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_io.cpp:167:33:  [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).
gfal_file_handle GridFTPModule::open(const char* url, int flag, mode_t mode)
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_io.cpp:186: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 err_buff[2048];
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_io.cpp:387:55:  [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).
        ret = ((static_cast<GridFTPModule*>(handle))->open(url, flag, mode));
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_ns_xattr.cpp:184: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 err_static[2048];
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_parsing.cpp:231:33:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            stat_info->st_uid = atoi(factval);
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_parsing.cpp:234:33:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            stat_info->st_gid = atoi(factval);
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_parsing.cpp:375: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).
                fstat->st_nlink = atol(start);
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_parsing.cpp:379: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).
                    fstat->st_uid = atoi(start);
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_parsing.cpp:382:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char usrbuf[128];
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_parsing.cpp:394: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).
                    fstat->st_gid = atoi(start);
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_parsing.cpp:397:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char grbuf[128];
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_parsing.cpp:408: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).
                fstat->st_size = atol(start);
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_parsing.cpp:414:35:  [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).
                timedef.tm_mday = atoi(start);
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_parsing.cpp:419:39:  [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).
                    timedef.tm_hour = atoi(start);
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_parsing.cpp:420:38:  [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).
                    timedef.tm_min = atoi(colon + 1);
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_parsing.cpp:423:39:  [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).
                    timedef.tm_year = atoi(start) - 1900;
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_pasv_plugin.cpp:95:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    h1 = atoi(resp + matches[1].rm_so);
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_pasv_plugin.cpp:96:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    h2 = atoi(resp + matches[2].rm_so);
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_pasv_plugin.cpp:97:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    h3 = atoi(resp + matches[3].rm_so);
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_pasv_plugin.cpp:98:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    h4 = atoi(resp + matches[4].rm_so);
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_pasv_plugin.cpp:99:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    p1 = atoi(resp + matches[5].rm_so);
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_pasv_plugin.cpp:100:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    p2 = atoi(resp + matches[6].rm_so);
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_pasv_plugin.cpp:134:20:  [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).
        int type = atol(msg + matches[1].rm_so);
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_pasv_plugin.cpp:155: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).
    *port = atoi(msg + matches[3].rm_so);
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_pasv_plugin.cpp:178:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    h1 = atoi(msg + matches[0].rm_so);
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_pasv_plugin.cpp:179:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    h2 = atoi(msg + matches[1].rm_so);
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_pasv_plugin.cpp:180:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    h3 = atoi(msg + matches[2].rm_so);
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_pasv_plugin.cpp:181:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    h4 = atoi(msg + matches[3].rm_so);
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_pasv_plugin.cpp:182:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    p1 = atoi(msg + matches[4].rm_so);
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_pasv_plugin.cpp:183:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    p2 = atoi(msg + matches[5].rm_so);
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_pasv_plugin.cpp:216: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 ip[65] = {0};
data/gfal2-2.18.2/src/plugins/gridftp/gridftpmodule.h:49:22:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    gfal_file_handle open(const char* url, int flag, mode_t mode);
data/gfal2-2.18.2/src/plugins/gridftp/gridftpwrapper.cpp: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 buffer[GFAL_URL_MAX_LEN];
data/gfal2-2.18.2/src/plugins/gridftp/gridftpwrapper.cpp:579: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 errbuff[GFAL_URL_MAX_LEN];
data/gfal2-2.18.2/src/plugins/gridftp/gridftpwrapper.cpp:677: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 err_static[2048];
data/gfal2-2.18.2/src/plugins/gridftp/gridftpwrapper.cpp:834: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 err_static[2048];
data/gfal2-2.18.2/src/plugins/http/gfal_http_copy.cpp:117: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 copy_mode[64] = {0};
data/gfal2-2.18.2/src/plugins/http/gfal_http_copy.cpp:583: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 src[GFAL_URL_MAX_LEN], dst[GFAL_URL_MAX_LEN];
data/gfal2-2.18.2/src/plugins/http/gfal_http_copy.cpp:592: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 checksum_type[1024] = {0};
data/gfal2-2.18.2/src/plugins/http/gfal_http_copy.cpp:593: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 user_checksum[1024] = {0};
data/gfal2-2.18.2/src/plugins/http/gfal_http_copy.cpp:594: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 src_checksum[1024] = {0};
data/gfal2-2.18.2/src/plugins/http/gfal_http_copy.cpp:738: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 dst_checksum[1024];
data/gfal2-2.18.2/src/plugins/http/gfal_http_plugin.cpp:617: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 buffer[512] = {0};
data/gfal2-2.18.2/src/plugins/http/gfal_http_plugin_io.cpp:37:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stripped_url[GFAL_URL_MAX_LEN];
data/gfal2-2.18.2/src/plugins/http/gfal_http_plugin_io.cpp:51:33:  [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->davix_fd = davix->posix.open(&fd->req_params, stripped_url, flag, &daverr);
data/gfal2-2.18.2/src/plugins/http/gfal_http_plugin_metadata.cpp:33: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 stripped_url[GFAL_URL_MAX_LEN];
data/gfal2-2.18.2/src/plugins/http/gfal_http_plugin_metadata.cpp:57:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stripped_url[GFAL_URL_MAX_LEN];
data/gfal2-2.18.2/src/plugins/http/gfal_http_plugin_metadata.cpp:76: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 stripped_url[GFAL_URL_MAX_LEN];
data/gfal2-2.18.2/src/plugins/http/gfal_http_plugin_metadata.cpp:98: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 stripped_url[GFAL_URL_MAX_LEN];
data/gfal2-2.18.2/src/plugins/http/gfal_http_plugin_metadata.cpp:133:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stripped_old[GFAL_URL_MAX_LEN];
data/gfal2-2.18.2/src/plugins/http/gfal_http_plugin_metadata.cpp:134: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 stripped_new[GFAL_URL_MAX_LEN];
data/gfal2-2.18.2/src/plugins/http/gfal_http_plugin_metadata.cpp:205: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 stripped_url[GFAL_URL_MAX_LEN];
data/gfal2-2.18.2/src/plugins/http/gfal_http_plugin_metadata.cpp:283: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 stripped_url[GFAL_URL_MAX_LEN];
data/gfal2-2.18.2/src/plugins/lfc/gfal_lfc.c:46:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char url[GFAL_URL_MAX_LEN];
data/gfal2-2.18.2/src/plugins/lfc/gfal_lfc.c:159: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 buff_lfn[GFAL_URL_MAX_LEN];
data/gfal2-2.18.2/src/plugins/lfc/gfal_lfc.c:506: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 fullurl[GFAL_URL_MAX_LEN];
data/gfal2-2.18.2/src/plugins/lfc/gfal_lfc.c:961: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 res_buff[LFC_BUFF_SIZE];
data/gfal2-2.18.2/src/plugins/lfc/gfal_lfc.c:978:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(buff, GFAL_LFC_PREFIX, MIN(buffsiz, GFAL_LFC_PREFIX_LEN));
data/gfal2-2.18.2/src/plugins/lfc/gfal_lfc.c:981:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(buff + GFAL_LFC_PREFIX_LEN, res_buff, MIN(ret, buffsiz - GFAL_LFC_PREFIX_LEN));
data/gfal2-2.18.2/src/plugins/lfc/gfal_lfc.c:997: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(copy, original, sizeof(struct stat));
data/gfal2-2.18.2/src/plugins/lfc/lfc_ifce_ng.c:109:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        value = (char *) tab_override[i];
data/gfal2-2.18.2/src/plugins/lfc/lfc_ifce_ng.c:129: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.
                        char v_str[20];
data/gfal2-2.18.2/src/plugins/lfc/lfc_ifce_ng.c:436: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 struid[37];
data/gfal2-2.18.2/src/plugins/lfc/lfc_ifce_ng.c:464: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 path[path_size + 1];
data/gfal2-2.18.2/src/plugins/lfc/lfc_ifce_ng.c:547:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char local_buff[CA_MAXCOMMENTLEN + 1];
data/gfal2-2.18.2/src/plugins/lfc/lfc_ifce_ng.c:579: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 internal_buff[GFAL_URL_MAX_LEN];
data/gfal2-2.18.2/src/plugins/lfc/lfc_ifce_ng.c:642:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            *(p = (char *) mempcpy(p, strv[i], MIN(size, s_str))) = '\n';
data/gfal2-2.18.2/src/plugins/lfc/lfc_ifce_ng.h:46:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char type[255];
data/gfal2-2.18.2/src/plugins/lfc/lfc_ifce_ng.h:47:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char value[GFAL_URL_MAX_LEN];
data/gfal2-2.18.2/src/plugins/lfc/lfc_register.c:27: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 csumtype[3];
data/gfal2-2.18.2/src/plugins/lfc/lfc_register.c:28: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 csumvalue[33];
data/gfal2-2.18.2/src/plugins/lfc/lfc_register.c:111: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 err_buffer[64];
data/gfal2-2.18.2/src/plugins/mock/gfal_mock_dir.c:50:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char file_list[1024];
data/gfal2-2.18.2/src/plugins/mock/gfal_mock_dir.c:110: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(st, &entry->st, sizeof(struct stat));
data/gfal2-2.18.2/src/plugins/mock/gfal_mock_file.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 arg_buffer[64] = {0};
data/gfal2-2.18.2/src/plugins/mock/gfal_mock_file.c:58: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).
        fd->fd = open("/dev/urandom", O_RDONLY);
data/gfal2-2.18.2/src/plugins/mock/gfal_mock_file.c:61: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).
        fd->fd = open("/dev/null", O_WRONLY);
data/gfal2-2.18.2/src/plugins/mock/gfal_mock_file.c:80: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 arg_buffer[64] = {0};
data/gfal2-2.18.2/src/plugins/mock/gfal_mock_metadata.c:29: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 arg_buffer[64] = {0};
data/gfal2-2.18.2/src/plugins/mock/gfal_mock_plugin_main.c:142: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).
    FILE *fd = fopen("/proc/self/cmdline", "r");
data/gfal2-2.18.2/src/plugins/mock/gfal_mock_staging.c:38: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 arg_buffer[64];
data/gfal2-2.18.2/src/plugins/mock/gfal_mock_staging.c:77:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char arg_buffer[64];
data/gfal2-2.18.2/src/plugins/mock/gfal_mock_staging.c:101: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 arg_buffer[64];
data/gfal2-2.18.2/src/plugins/mock/gfal_mock_transfer.c:46:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char checksum_type[GFAL_URL_MAX_LEN] = {0};
data/gfal2-2.18.2/src/plugins/mock/gfal_mock_transfer.c:47: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 checksum_usr[GFAL_URL_MAX_LEN] = {0};
data/gfal2-2.18.2/src/plugins/mock/gfal_mock_transfer.c:48:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char checksum_src[GFAL_URL_MAX_LEN] = {0};
data/gfal2-2.18.2/src/plugins/mock/gfal_mock_transfer.c:68:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char time_dst[GFAL_URL_MAX_LEN] = {0};
data/gfal2-2.18.2/src/plugins/mock/gfal_mock_transfer.c:73: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).
        seconds = atoi(time_dst);
data/gfal2-2.18.2/src/plugins/mock/gfal_mock_transfer.c:85: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 transfer_errno_buffer[64] = {0};
data/gfal2-2.18.2/src/plugins/mock/gfal_mock_transfer.c:127:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char checksum_dst[GFAL_URL_MAX_LEN] = {0};
data/gfal2-2.18.2/src/plugins/rfio/gfal_rfio_plugin_bindings.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 buff_error[2048]= {0};
data/gfal2-2.18.2/src/plugins/rfio/gfal_rfio_plugin_bindings.c:47: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).
	int fd= h->rf->open(path, flag, mode);
data/gfal2-2.18.2/src/plugins/rfio/gfal_rfio_plugin_layer.h:46: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).
	int	(*open)(const char *, int, ...);
data/gfal2-2.18.2/src/plugins/sftp/gfal_sftp_connection.c:104: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 addrstr[100] = {0};
data/gfal2-2.18.2/src/plugins/srm/gfal_srm.c:195: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(copy, origin, sizeof(struct extended_stat));
data/gfal2-2.18.2/src/plugins/srm/gfal_srm.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 srm_ifce_error_buffer[GFAL_ERRMSG_LEN];
data/gfal2-2.18.2/src/plugins/srm/gfal_srm.h:81:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char x509_ucert[GFAL_URL_MAX_LEN], x509_ukey[GFAL_URL_MAX_LEN];
data/gfal2-2.18.2/src/plugins/srm/gfal_srm.h:82:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char endpoint[GFAL_URL_MAX_LEN];
data/gfal2-2.18.2/src/plugins/srm/gfal_srm.h:87:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char turl[GFAL_URL_MAX_LEN+1]; // turl associated with the request ( main result )
data/gfal2-2.18.2/src/plugins/srm/gfal_srm.h:90:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char err_str[GFAL_ERRMSG_LEN+1];	// explanation about the error
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_bringonline.c:177:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *decoded[nbfiles];
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_bringonline.c:298: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 *decoded[nbfiles];
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_bringonline.c:399:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *decoded[nbfiles];
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_bringonline.c:477: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 *decoded[nbfiles];
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_checksum.c:112: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 buffer_type[GFAL_URL_MAX_LEN] = {0};
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_checksum.c:139: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 buff_turl[GFAL_URL_MAX_LEN];
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_copy.c:305: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 checksum_destination[GFAL_URL_MAX_LEN] = {0};
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_copy.c:431: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 buffer[1024];
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_copy.c:574: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 checksum_algorithm[64] = {0};
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_copy.c:575: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 checksum_user[GFAL_URL_MAX_LEN] = {0};
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_copy.c:576: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 checksum_source[GFAL_URL_MAX_LEN] = {0};
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_copy.c:577:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char turl_source[GFAL_URL_MAX_LEN] = {0};
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_copy.c:578: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_source[GFAL_URL_MAX_LEN] = {0};
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_copy.c:579: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 turl_destination[GFAL_URL_MAX_LEN] = {0};
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_copy.c:580: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_destination[GFAL_URL_MAX_LEN] = {0};
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_endpoint.c:92: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(buff_endpoint, GFAL_ENDPOINT_DEFAULT_PREFIX, GFAL_ENDPOINT_DEFAULT_PREFIX_LEN);
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_getxattr.c:128:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(plist, *p, size_str);
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_getxattr_status.c:66:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char key_buff[GFAL_URL_MAX_LEN];
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_internal_layer.c:156:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char full_endpoint[GFAL_URL_MAX_LEN];
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_internal_ls.c:115:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(buf, &(srmv2_mdstatuses->stat), sizeof(struct stat));
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_internal_ls.c:131:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buff_key[GFAL_URL_MAX_LEN];
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_internal_ls.c:145: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 buff_key[GFAL_URL_MAX_LEN];
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_open.c:31: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 surl[GFAL_URL_MAX_LEN];
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_open.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 turl[GFAL_URL_MAX_LEN];
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_opendir.c:62:43:  [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).
                        h->chunk_offset = atoi(value);
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_opendir.c:65:41:  [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).
                        h->chunk_size = atoi(value);
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_opendir.h: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 surl[GFAL_URL_MAX_LEN];
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_readdir.c:41: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(st, st64, sizeof(*st));
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_readdir.c:68:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buff_surlfull[GFAL_URL_MAX_LEN];
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_rm.c:121: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 *decoded[nbfiles];
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_rm.c:148:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *paths[1] = {path};
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_stat.c:43:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char key_buff[GFAL_URL_MAX_LEN];
data/gfal2-2.18.2/src/plugins/xrootd/gfal_xrootd_plugin_3rd_copy.cpp:232: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 _checksumType[64] = { 0 };
data/gfal2-2.18.2/src/plugins/xrootd/gfal_xrootd_plugin_3rd_copy.cpp:233: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 _checksumValue[512] = { 0 };
data/gfal2-2.18.2/src/plugins/xrootd/gfal_xrootd_plugin_3rd_copy.cpp:275: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 checksumType[64] = { 0 };
data/gfal2-2.18.2/src/plugins/xrootd/gfal_xrootd_plugin_3rd_copy.cpp:276: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 checksumValue[512] = { 0 };
data/gfal2-2.18.2/src/plugins/xrootd/gfal_xrootd_plugin_3rd_copy.cpp:384: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 checksumType[64] = { 0 };
data/gfal2-2.18.2/src/plugins/xrootd/gfal_xrootd_plugin_3rd_copy.cpp:385: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 checksumValue[512] = { 0 };
data/gfal2-2.18.2/src/plugins/xrootd/gfal_xrootd_plugin_3rd_copy.cpp:390: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 *checksumConcat[1];
data/gfal2-2.18.2/src/plugins/xrootd/gfal_xrootd_plugin_interface.cpp:611: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(list, props, len);
data/gfal2-2.18.2/src/plugins/xrootd/gfal_xrootd_plugin_utils.cpp:240: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 error_string[64];
data/gfal2-2.18.2/src/plugins/xrootd/gfal_xrootd_plugin_utils.cpp:250: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 err_msg[256];
data/gfal2-2.18.2/src/plugins/xrootd/gfal_xrootd_plugin_utils.cpp:256: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 buffer[512];
data/gfal2-2.18.2/src/utils/checksums/checksums.c:238:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&ctx->buffer[used], data, size);
data/gfal2-2.18.2/src/utils/checksums/checksums.c:242: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(&ctx->buffer[used], data, available);
data/gfal2-2.18.2/src/utils/checksums/checksums.c:253: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(ctx->buffer, data, size);
data/gfal2-2.18.2/src/utils/checksums/checksums.h:44: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.
    unsigned char buffer[64];
data/gfal2-2.18.2/src/utils/mds/gfal_mds.c:101: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 errbuff[GFAL_ERRMSG_LEN]= {0};
data/gfal2-2.18.2/src/utils/mds/gfal_mds.h:43:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char url[GFAL_URL_MAX_LEN];
data/gfal2-2.18.2/src/utils/mds/gfal_mds_internal.c:155:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char srm_name[GFAL_URL_MAX_LEN + 1] = {0};
data/gfal2-2.18.2/src/utils/mds/gfal_mds_internal.c:156:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char srm_version[GFAL_URL_MAX_LEN + 1] = {0};
data/gfal2-2.18.2/src/utils/mds/gfal_mds_internal.c:157:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char srm_endpoint[GFAL_URL_MAX_LEN + 1] = {0};
data/gfal2-2.18.2/src/utils/mds/gfal_mds_internal.c:299:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char uri[GFAL_URL_MAX_LEN];
data/gfal2-2.18.2/src/utils/mds/gfal_mds_internal.c:305: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 buff_filter[GFAL_URL_MAX_LEN];
data/gfal2-2.18.2/src/utils/uri/gfal2_uri.c:53:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[128];
data/gfal2-2.18.2/src/utils/uri/gfal2_uri.c:107:28:  [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).
            parsed->port = atol(authority + authmatch[7].rm_so + 1);
data/gfal2-2.18.2/src/utils/uri/gfal2_uri.c:144: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 port[12];
data/gfal2-2.18.2/test/common/gfal_lib_test.c:78:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fnameBuffer[512];
data/gfal2-2.18.2/test/common/gfal_lib_test.c:86: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 command[1024];
data/gfal2-2.18.2/test/common/gfal_lib_test.c:160: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 fileBuffer[1024];
data/gfal2-2.18.2/test/functional/gfal_test_access.cpp: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 surl[2048];
data/gfal2-2.18.2/test/functional/gfal_test_bringonline.cpp:37:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char surl[2048];
data/gfal2-2.18.2/test/functional/gfal_test_bringonline.cpp: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 token[64];
data/gfal2-2.18.2/test/functional/gfal_test_bringonline.cpp:86: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] = {0};
data/gfal2-2.18.2/test/functional/gfal_test_bringonline.cpp:104: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] = {0};
data/gfal2-2.18.2/test/functional/gfal_test_bringonline.cpp:107: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 not_exist[2048];
data/gfal2-2.18.2/test/functional/gfal_test_bringonline.cpp:126: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] = {0};
data/gfal2-2.18.2/test/functional/gfal_test_bringonline.cpp:129: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 not_exist[2048];
data/gfal2-2.18.2/test/functional/gfal_test_bringonline.cpp:171: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/gfal2-2.18.2/test/functional/gfal_test_bringonline.cpp: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] = {0};
data/gfal2-2.18.2/test/functional/gfal_test_bringonline.cpp:192: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 not_exist[2048];
data/gfal2-2.18.2/test/functional/gfal_test_bringonline.cpp:258:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char token[64] = {0};
data/gfal2-2.18.2/test/functional/gfal_test_bringonline.cpp:263: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 *surls[nbfiles];
data/gfal2-2.18.2/test/functional/gfal_test_checksum.cpp:69: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 surl[2048];
data/gfal2-2.18.2/test/functional/gfal_test_checksum.cpp:119:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[512];
data/gfal2-2.18.2/test/functional/gfal_test_chmod.cpp:37:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char surl[2048];
data/gfal2-2.18.2/test/functional/gfal_test_del.cpp:36: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 nested_file[2048];
data/gfal2-2.18.2/test/functional/gfal_test_del.cpp:93: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 buff[2048];
data/gfal2-2.18.2/test/functional/gfal_test_mkdir_full.cpp: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 surl[2048];
data/gfal2-2.18.2/test/functional/gfal_test_posix.cpp:67: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 file[2048];
data/gfal2-2.18.2/test/functional/gfal_test_posix.cpp:77:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char dir[2048];
data/gfal2-2.18.2/test/functional/gfal_test_posix.cpp:178: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 buffer[512] = {0};
data/gfal2-2.18.2/test/functional/gfal_test_posix.cpp:197: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 file[2048];
data/gfal2-2.18.2/test/functional/gfal_test_posix.cpp:203:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[512] = {0};
data/gfal2-2.18.2/test/functional/gfal_test_posix.cpp:233: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 buffer[1024] = {0};
data/gfal2-2.18.2/test/functional/gfal_test_posix.cpp:248: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 buffer[64] = {0};
data/gfal2-2.18.2/test/functional/gfal_test_posix.cpp:271: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 file[2048];
data/gfal2-2.18.2/test/functional/gfal_test_posix.cpp:277: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 buffer[512] = {0};
data/gfal2-2.18.2/test/functional/gfal_test_posix.cpp:283: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 read_buffer[512] = {0};
data/gfal2-2.18.2/test/functional/gfal_test_posix.cpp:301:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[512] = {0};
data/gfal2-2.18.2/test/functional/gfal_test_qos.cpp: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 buff[2048];
data/gfal2-2.18.2/test/functional/gfal_test_qos.cpp:85: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 buff[2048];
data/gfal2-2.18.2/test/functional/gfal_test_qos.cpp:100: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 buff[2048];
data/gfal2-2.18.2/test/functional/gfal_test_qos.cpp: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 buff[2048];
data/gfal2-2.18.2/test/functional/gfal_test_readdir_full.cpp:36: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 surl[2048];
data/gfal2-2.18.2/test/functional/gfal_test_readdir_full.cpp:37:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char nested[NNESTED][2048];
data/gfal2-2.18.2/test/functional/gfal_test_readdir_full.cpp:83:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char enoent_dir[2048];
data/gfal2-2.18.2/test/functional/gfal_test_register.cpp:39:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char origin[2048];
data/gfal2-2.18.2/test/functional/gfal_test_register.cpp:40: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 origin2[2048];
data/gfal2-2.18.2/test/functional/gfal_test_register.cpp:41: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 lfc[2048];
data/gfal2-2.18.2/test/functional/gfal_test_register.cpp:90: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 replicas[2048];
data/gfal2-2.18.2/test/functional/gfal_test_register.cpp:131:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[1024] = {0};
data/gfal2-2.18.2/test/functional/gfal_test_register.cpp:137: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 buffer2[1024] = {0};
data/gfal2-2.18.2/test/functional/gfal_test_register.cpp:138: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).
    FILE* fd = fopen("/etc/hosts", "r");
data/gfal2-2.18.2/test/functional/gfal_test_rename.cpp: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 origin[2048];
data/gfal2-2.18.2/test/functional/gfal_test_rename.cpp:36: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 destination[2048];
data/gfal2-2.18.2/test/functional/gfal_test_rmdir_full.cpp: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 surl[2048];
data/gfal2-2.18.2/test/functional/gfal_test_rmdir_full.cpp:36: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 surl_nested[2048];
data/gfal2-2.18.2/test/functional/gfal_test_rw_full.cpp:38: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 surl[2048];
data/gfal2-2.18.2/test/functional/gfal_test_rw_full.cpp:96:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[size];
data/gfal2-2.18.2/test/functional/gfal_test_rw_full.cpp:118:24:  [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).
    RwFullTest::size = atol(argv[2]);
data/gfal2-2.18.2/test/functional/gfal_test_rw_seek.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 surl[2048];
data/gfal2-2.18.2/test/functional/gfal_test_rw_seek.cpp:72: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 buffer[file_size];
data/gfal2-2.18.2/test/functional/gfal_test_rw_seek.cpp:101: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 buffer[file_size];
data/gfal2-2.18.2/test/functional/gfal_test_rw_seek.cpp:143: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).
    RwSeekTest::block_size = atol(argv[2]);
data/gfal2-2.18.2/test/functional/gfal_test_rw_seek.cpp:144: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).
    RwSeekTest::file_size = atol(argv[3]);
data/gfal2-2.18.2/test/functional/gfal_test_rw_seq.cpp:36: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 surl[2048];
data/gfal2-2.18.2/test/functional/gfal_test_rw_seq.cpp:67: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 buffer[file_size];
data/gfal2-2.18.2/test/functional/gfal_test_rw_seq.cpp:92: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 read_buffer[file_size];
data/gfal2-2.18.2/test/functional/gfal_test_rw_seq.cpp:125: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).
    RwSeqTest::block_size = atol(argv[2]);
data/gfal2-2.18.2/test/functional/gfal_test_rw_seq.cpp:126:28:  [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).
    RwSeqTest::file_size = atol(argv[3]);
data/gfal2-2.18.2/test/functional/gfal_test_space.cpp:37: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 responseBuffer[1024];
data/gfal2-2.18.2/test/functional/gfal_test_space.cpp:58:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char attrs[1024];
data/gfal2-2.18.2/test/functional/gfal_test_space.cpp:133:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[1024];
data/gfal2-2.18.2/test/functional/gfal_test_xattr.cpp:34: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 surl[2048];
data/gfal2-2.18.2/test/functional/gfal_test_xattr.cpp: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 origin[2048];
data/gfal2-2.18.2/test/functional/gfal_test_xattr.cpp:87: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 buffer[1024];
data/gfal2-2.18.2/test/functional/gfal_test_xattr.cpp:115: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 buffer[1024];
data/gfal2-2.18.2/test/functional/gfal_test_xattr.cpp:143: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 buffer[1024];
data/gfal2-2.18.2/test/functional/gfal_test_xattr.cpp:176:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[1024];
data/gfal2-2.18.2/test/functional/gfal_test_xattr.cpp:211: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 buffer[1024];
data/gfal2-2.18.2/test/functional/gfal_test_xattr.cpp:246: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 buffer[1024];
data/gfal2-2.18.2/test/functional/gfal_test_xattr.cpp:247:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char replica[1024];
data/gfal2-2.18.2/test/functional/gfalt_test_copy_bulk.cpp:43:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *sources[NBPAIRS];
data/gfal2-2.18.2/test/functional/gfalt_test_copy_bulk.cpp:44:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *destinations[NBPAIRS];
data/gfal2-2.18.2/test/functional/gfalt_test_copy_bulk.cpp: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 *nested[NBPAIRS];
data/gfal2-2.18.2/test/functional/gfalt_test_copy_bulk.cpp:51:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char original_checksum[32];
data/gfal2-2.18.2/test/functional/gfalt_test_copy_bulk.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 source_base[2048];
data/gfal2-2.18.2/test/functional/gfalt_test_copy_bulk.cpp:80: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 dest_base[2048];
data/gfal2-2.18.2/test/functional/gfalt_test_copy_bulk.cpp:241:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *checksums[NBPAIRS] = {0};
data/gfal2-2.18.2/test/functional/gfalt_test_copy_bulk.cpp:335: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 buffer[2048];
data/gfal2-2.18.2/test/functional/gfalt_test_copy_file.cpp:38: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 source[2048];
data/gfal2-2.18.2/test/functional/gfalt_test_copy_file.cpp:39:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char destination[2048];
data/gfal2-2.18.2/test/functional/gfalt_test_copy_file_checksum.cpp:37:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char source[2048];
data/gfal2-2.18.2/test/functional/gfalt_test_copy_file_checksum.cpp:38: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 destination[2048];
data/gfal2-2.18.2/test/functional/gfalt_test_copy_file_checksum_user.cpp:38: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 source[2048];
data/gfal2-2.18.2/test/functional/gfalt_test_copy_file_checksum_user.cpp:39:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char destination[2048];
data/gfal2-2.18.2/test/functional/gfalt_test_copy_file_checksum_user.cpp:117: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 checksum_source[2048];
data/gfal2-2.18.2/test/functional/gfalt_test_copy_file_checksum_user.cpp:149: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 checksum_source[2048];
data/gfal2-2.18.2/test/functional/gfalt_test_copy_file_checksum_user.cpp:166:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char checksum_source[2048];
data/gfal2-2.18.2/test/functional/gfalt_test_copy_file_mkdir.cpp:39:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char source[2048];
data/gfal2-2.18.2/test/functional/gfalt_test_copy_file_mkdir.cpp:40: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 destination[2048];
data/gfal2-2.18.2/test/functional/gfalt_test_copy_file_mkdir.cpp:116: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 first_level[2048];
data/gfal2-2.18.2/test/functional/gfalt_test_copy_file_mkdir.cpp:117: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 second_level[2048];
data/gfal2-2.18.2/test/functional/gfalt_test_copy_file_mkdir.cpp:118: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 third_level[2048];
data/gfal2-2.18.2/test/functional/gfalt_test_copy_file_replace.cpp:37:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char source[2048];
data/gfal2-2.18.2/test/functional/gfalt_test_copy_file_replace.cpp:38: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 destination[2048];
data/gfal2-2.18.2/test/functional/gfalt_test_copy_file_timeout.cpp:37:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char source[2048];
data/gfal2-2.18.2/test/functional/gfalt_test_copy_file_timeout.cpp:38: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 destination[2048];
data/gfal2-2.18.2/test/functional/gfalt_test_double_cred.cpp:33: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 source[2048];
data/gfal2-2.18.2/test/functional/gfalt_test_double_cred.cpp:34: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 destination[2048];
data/gfal2-2.18.2/test/functional/gfalt_test_pasv.cpp:40: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 source[2048];
data/gfal2-2.18.2/test/functional/gfalt_test_pasv.cpp:41: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 destination[2048];
data/gfal2-2.18.2/test/functional/gfalt_test_rd3_reorder_protocols.cpp:38: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 source[2048];
data/gfal2-2.18.2/test/functional/gfalt_test_rd3_reorder_protocols.cpp:39:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char destination[2048];
data/gfal2-2.18.2/test/stress-test/gfalt_copyfile_fts_style_load_test.c:90: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 buff[2048];
data/gfal2-2.18.2/test/stress-test/gfalt_copyfile_fts_style_load_test.c:93: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).
    const int nbtime = atoi(argv[4]);
data/gfal2-2.18.2/src/core/common/gfal_cancel.c:47:9:  [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(50);
data/gfal2-2.18.2/src/core/common/gfal_config.c:436: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).
    size_t len = strlen(original);
data/gfal2-2.18.2/src/core/common/gfal_cred_mapping.c:90: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).
    node->prefix_len = strlen(url_prefix);
data/gfal2-2.18.2/src/core/file/gfal2_standard_file_operations.c:160: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).
                    const size_t s_url = strlen(current_url);
data/gfal2-2.18.2/src/plugins/dcap/gfal_dcap_plugin_bindings.c:91:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t ret = h->ops->read(GPOINTER_TO_INT(gfal_file_handle_get_fdesc(fd)), buff, s_buff);
data/gfal2-2.18.2/src/plugins/dcap/gfal_dcap_plugin_layer.h:46:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ssize_t	(*read)(int, void *, size_t);
data/gfal2-2.18.2/src/plugins/file/gfal_file_plugin_main.c:285:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    const int ret = read(fd, buff, s_buff);
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_filecopy.cpp:225:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(500000);
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_io.cpp:220:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
ssize_t GridFTPModule::read(gfal_file_handle handle, void* buffer, size_t count)
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_io.cpp:404:57:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ret = (int) ((static_cast<GridFTPModule*>(ch))->read(fd, buff, s_buff));
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_ns_checksum.cpp:101:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(checksum_buffer, s.c_str(), buffer_length);
data/gfal2-2.18.2/src/plugins/gridftp/gridftp_parsing.cpp:293:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(mode_str) != 10)
data/gfal2-2.18.2/src/plugins/gridftp/gridftpmodule.h:52:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t read(gfal_file_handle handle, void* buffer, size_t count);
data/gfal2-2.18.2/src/plugins/http/gfal_http_copy.cpp:99:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t key_len = strlen(key);
data/gfal2-2.18.2/src/plugins/http/gfal_http_plugin_io.cpp:71:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t reads = davix->posix.read(dfd->davix_fd, buff, count, &daverr);
data/gfal2-2.18.2/src/plugins/lfc/gfal_lfc.c:77: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).
    const int pref_len = strlen(prefix);
data/gfal2-2.18.2/src/plugins/lfc/gfal_lfc.c:789: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).
                const int size_str = strlen(*p) + 1;
data/gfal2-2.18.2/src/plugins/mock/gfal_mock_file.c:105:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    off_t nread = read(mfd->fd, buff, count);
data/gfal2-2.18.2/src/plugins/mock/gfal_mock_plugin_main.c:90:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t key_len = strlen(key);
data/gfal2-2.18.2/src/plugins/mock/gfal_mock_staging.c:170:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int token_len = strlen(token);
data/gfal2-2.18.2/src/plugins/mock/gfal_mock_staging.c:173: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).
        total_len += strlen(uris[i]);
data/gfal2-2.18.2/src/plugins/rfio/gfal_rfio_plugin_bindings.c:57:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int ret = h->rf->read(GPOINTER_TO_INT(gfal_file_handle_get_fdesc(fd)), buff, s_buff);
data/gfal2-2.18.2/src/plugins/rfio/gfal_rfio_plugin_layer.h:48:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ssize_t	(*read)(int, void *, size_t);
data/gfal2-2.18.2/src/plugins/sftp/gfal_sftp_connection.c:189:81:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const char *userauthlist = libssh2_userauth_list(handle->ssh_session, user, strlen(user));
data/gfal2-2.18.2/src/plugins/sftp/gfal_sftp_io.c:105:70:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ssize_t rc = libssh2_sftp_read(ssh_fd->file_handle, buffer + read, count - read);
data/gfal2-2.18.2/src/plugins/sftp/gfal_sftp_io.c:105:84:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ssize_t rc = libssh2_sftp_read(ssh_fd->file_handle, buffer + read, count - read);
data/gfal2-2.18.2/src/plugins/sftp/gfal_sftp_io.c:113:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    } while (read < count);
data/gfal2-2.18.2/src/plugins/sftp/gfal_sftp_io.c:115:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return read;
data/gfal2-2.18.2/src/plugins/sftp/gfal_sftp_metadata.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).
        sftp_handle->path, strlen(sftp_handle->path),
data/gfal2-2.18.2/src/plugins/srm/gfal_srm.c:269:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *p2 = buff + strlen(prefix) + strlen(GFAL_PREFIX_SRM) + 2;
data/gfal2-2.18.2/src/plugins/srm/gfal_srm.c:269: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).
    char *p2 = buff + strlen(prefix) + strlen(GFAL_PREFIX_SRM) + 2;
data/gfal2-2.18.2/src/plugins/srm/gfal_srm.c:272: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).
            memmove(p2, p2 + 1, strlen(p2 + 1) + 1);
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_copy.c:93: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).
        char *p = path_dir + strlen(path_dir) - 1;
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_copy.c:447: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 (ret > 0 && strlen(buffer) > 0 && tmp_err == NULL) {
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_getput.c:57: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).
            size_t proto_len = strlen(params->protocols[j]);
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_getput.c:430: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 proto_len = strlen(sup_protocols[j]);
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_getput.c:432:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            g_strlcpy (sup_protocols[j], sup_protocols[0], strlen(sup_protocols[0])+1);
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_getxattr.c:126: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).
        const int size_str = strlen(*p) + 1;
data/gfal2-2.18.2/src/plugins/srm/gfal_srm_url_check.c:33: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).
    const size_t prefix_len = strlen(surl_prefix);
data/gfal2-2.18.2/src/plugins/xrootd/gfal_xrootd_plugin_3rd_copy.cpp:280:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(checksumType, chks[0], sizeof(chks[0]));
data/gfal2-2.18.2/src/plugins/xrootd/gfal_xrootd_plugin_3rd_copy.cpp:281:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(checksumValue, s, sizeof(s));
data/gfal2-2.18.2/src/utils/mds/gfal_mds_cache.cpp:93:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t hostLen = strlen(host);
data/gfal2-2.18.2/src/utils/mds/gfal_mds_internal.c:114:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strncasecmp(srm_name, SRM_PREFIX_NAME, strlen(SRM_PREFIX_NAME)) != 0) {
data/gfal2-2.18.2/test/common/gfal_lib_test.c:41: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).
    if (uri_dir[strlen(uri_dir)-1] != '/') {
data/gfal2-2.18.2/test/common/gfal_lib_test.c:80:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(fnameBuffer, sname, sizeof(fnameBuffer) - 1);
data/gfal2-2.18.2/test/common/gfal_lib_test.c:96:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(buffer, "Could not read from addr2line\n", bufsize);
data/gfal2-2.18.2/test/common/gfal_lib_test.c:100:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(buffer, "Could not execute addr2line\n", bufsize);
data/gfal2-2.18.2/test/functional/gfal_test_checksum.cpp:98:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t len = strlen(precomputed_content);
data/gfal2-2.18.2/test/functional/gfal_test_posix.cpp:263: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).
        i += strlen(buffer + i) + 1;
data/gfal2-2.18.2/test/functional/gfal_test_register.cpp:133:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    EXPECT_GT(read, 0);
data/gfal2-2.18.2/test/functional/gfal_test_register.cpp:143:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    EXPECT_EQ(read, read2);
data/gfal2-2.18.2/test/functional/gfal_test_space.cpp:65:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t attrlen = strlen(attrs + i);
data/gfal2-2.18.2/test/functional/gfal_test_xattr.cpp:92: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).
    EXPECT_GT(strlen(buffer), 0);
data/gfal2-2.18.2/test/functional/gfal_test_xattr.cpp:105: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).
        i += strlen(buffer + i) + 1;
data/gfal2-2.18.2/test/functional/gfal_test_xattr.cpp:120: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).
    EXPECT_GT(strlen(buffer), 0);
data/gfal2-2.18.2/test/functional/gfal_test_xattr.cpp:129: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).
        i += strlen(buffer + i) + 1;
data/gfal2-2.18.2/test/functional/gfal_test_xattr.cpp:148: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).
    EXPECT_GT(strlen(buffer), 0);
data/gfal2-2.18.2/test/functional/gfal_test_xattr.cpp:161: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).
        i += strlen(buffer + i) + 1;
data/gfal2-2.18.2/test/functional/gfal_test_xattr.cpp:192: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).
        i += strlen(buffer + i) + 1;
data/gfal2-2.18.2/test/functional/gfal_test_xattr.cpp:224: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).
        i += strlen(buffer + i) + 1;
data/gfal2-2.18.2/test/functional/gfal_test_xattr.cpp:257: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).
    EXPECT_EQ(ret, strlen(origin) + strlen(replica) + 2);
data/gfal2-2.18.2/test/functional/gfal_test_xattr.cpp:257: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).
    EXPECT_EQ(ret, strlen(origin) + strlen(replica) + 2);
data/gfal2-2.18.2/test/functional/gfal_test_xattr.cpp:266: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).
    EXPECT_EQ(ret, strlen(origin) + 1);
data/gfal2-2.18.2/test/functional/gfalt_test_copy_bulk.cpp:338:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(nested[i], buffer, 2048);

ANALYSIS SUMMARY:

Hits = 428
Lines analyzed = 41677 in approximately 1.17 seconds (35691 lines/second)
Physical Source Lines of Code (SLOC) = 26803
Hits@level = [0] 145 [1]  64 [2] 301 [3]  23 [4]  28 [5]  12
Hits@level+ = [0+] 573 [1+] 428 [2+] 364 [3+]  63 [4+]  40 [5+]  12
Hits/KSLOC@level+ = [0+] 21.3782 [1+] 15.9684 [2+] 13.5806 [3+] 2.35048 [4+] 1.49237 [5+] 0.447711
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.