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/gvmd-9.0.1/src/gmp.c
Examining data/gvmd-9.0.1/src/gmp.h
Examining data/gvmd-9.0.1/src/gmp_base.c
Examining data/gvmd-9.0.1/src/gmp_base.h
Examining data/gvmd-9.0.1/src/gmp_configs.c
Examining data/gvmd-9.0.1/src/gmp_configs.h
Examining data/gvmd-9.0.1/src/gmp_delete.c
Examining data/gvmd-9.0.1/src/gmp_delete.h
Examining data/gvmd-9.0.1/src/gmp_get.c
Examining data/gvmd-9.0.1/src/gmp_get.h
Examining data/gvmd-9.0.1/src/gmp_tickets.c
Examining data/gvmd-9.0.1/src/gmp_tickets.h
Examining data/gvmd-9.0.1/src/gmp_tickets_tests.c
Examining data/gvmd-9.0.1/src/gmp_tls_certificates.c
Examining data/gvmd-9.0.1/src/gmp_tls_certificates.h
Examining data/gvmd-9.0.1/src/gmpd.c
Examining data/gvmd-9.0.1/src/gmpd.h
Examining data/gvmd-9.0.1/src/gvmd.c
Examining data/gvmd-9.0.1/src/gvmd.h
Examining data/gvmd-9.0.1/src/iterator.h
Examining data/gvmd-9.0.1/src/lsc_crypt.c
Examining data/gvmd-9.0.1/src/lsc_crypt.h
Examining data/gvmd-9.0.1/src/lsc_user.c
Examining data/gvmd-9.0.1/src/lsc_user.h
Examining data/gvmd-9.0.1/src/main.c
Examining data/gvmd-9.0.1/src/manage.c
Examining data/gvmd-9.0.1/src/manage.h
Examining data/gvmd-9.0.1/src/manage_acl.c
Examining data/gvmd-9.0.1/src/manage_acl.h
Examining data/gvmd-9.0.1/src/manage_config_base.c
Examining data/gvmd-9.0.1/src/manage_config_discovery.c
Examining data/gvmd-9.0.1/src/manage_config_host_discovery.c
Examining data/gvmd-9.0.1/src/manage_config_system_discovery.c
Examining data/gvmd-9.0.1/src/manage_configs.c
Examining data/gvmd-9.0.1/src/manage_configs.h
Examining data/gvmd-9.0.1/src/manage_migrators_219_to_220_names.h
Examining data/gvmd-9.0.1/src/manage_pg.c
Examining data/gvmd-9.0.1/src/manage_ranges_all_tcp_nmap_5_51_top_100.c
Examining data/gvmd-9.0.1/src/manage_ranges_all_tcp_nmap_5_51_top_1000.c
Examining data/gvmd-9.0.1/src/manage_ranges_iana_tcp_2012.c
Examining data/gvmd-9.0.1/src/manage_ranges_iana_tcp_udp_2012.c
Examining data/gvmd-9.0.1/src/manage_ranges_nmap_5_51_top_2000_top_100.c
Examining data/gvmd-9.0.1/src/manage_sql.c
Examining data/gvmd-9.0.1/src/manage_sql.h
Examining data/gvmd-9.0.1/src/manage_sql_configs.c
Examining data/gvmd-9.0.1/src/manage_sql_configs.h
Examining data/gvmd-9.0.1/src/manage_sql_nvts.c
Examining data/gvmd-9.0.1/src/manage_sql_nvts.h
Examining data/gvmd-9.0.1/src/manage_sql_secinfo.c
Examining data/gvmd-9.0.1/src/manage_sql_secinfo.h
Examining data/gvmd-9.0.1/src/manage_sql_tickets.c
Examining data/gvmd-9.0.1/src/manage_sql_tickets.h
Examining data/gvmd-9.0.1/src/manage_sql_tls_certificates.c
Examining data/gvmd-9.0.1/src/manage_sql_tls_certificates.h
Examining data/gvmd-9.0.1/src/manage_tests.c
Examining data/gvmd-9.0.1/src/manage_tickets.h
Examining data/gvmd-9.0.1/src/manage_tls_certificates.c
Examining data/gvmd-9.0.1/src/manage_tls_certificates.h
Examining data/gvmd-9.0.1/src/manage_utils.c
Examining data/gvmd-9.0.1/src/manage_utils.h
Examining data/gvmd-9.0.1/src/manage_utils_tests.c
Examining data/gvmd-9.0.1/src/sql.c
Examining data/gvmd-9.0.1/src/sql.h
Examining data/gvmd-9.0.1/src/sql_pg.c
Examining data/gvmd-9.0.1/src/types.h
Examining data/gvmd-9.0.1/src/utils.h
Examining data/gvmd-9.0.1/src/utils.c
Examining data/gvmd-9.0.1/src/manage_migrators.c
Examining data/gvmd-9.0.1/src/manage_pg_server.c

FINAL RESULTS:

data/gvmd-9.0.1/src/gvmd.c:1518:15:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
          if (chown (address_str_unix, passwd->pw_uid, -1) == -1)
data/gvmd-9.0.1/src/gvmd.c:1535:15:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
          if (chown (address_str_unix, -1, group->gr_gid) == -1)
data/gvmd-9.0.1/src/gvmd.c:1550:11:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
      if (chmod (address_str_unix, omode) == -1)
data/gvmd-9.0.1/src/manage_sql.c:9921:16:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
            || chown (report_dir, nobody->pw_uid, nobody->pw_gid)
data/gvmd-9.0.1/src/manage_sql.c:9922:16:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
            || chown (report_path, nobody->pw_uid, nobody->pw_gid)
data/gvmd-9.0.1/src/manage_sql.c:9923:16:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
            || chown (error_path, nobody->pw_uid, nobody->pw_gid)
data/gvmd-9.0.1/src/manage_sql.c:9924:31:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
            || (extra_path && chown (extra_path, nobody->pw_uid,
data/gvmd-9.0.1/src/manage_sql.c:10240:14:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
          || chown (path, nobody->pw_uid, nobody->pw_gid))
data/gvmd-9.0.1/src/manage_sql.c:10716:16:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
            || chown (report_dir, nobody->pw_uid, nobody->pw_gid)
data/gvmd-9.0.1/src/manage_sql.c:10717:16:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
            || chown (report_file, nobody->pw_uid, nobody->pw_gid)
data/gvmd-9.0.1/src/manage_sql.c:10718:16:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
            || chown (pkcs12_file, nobody->pw_uid, nobody->pw_gid))
data/gvmd-9.0.1/src/manage_sql.c:11040:16:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
            || chown (archive_dir, nobody->pw_uid, nobody->pw_gid)
data/gvmd-9.0.1/src/manage_sql.c:11041:16:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
            || chown (archive_file, nobody->pw_uid, nobody->pw_gid))
data/gvmd-9.0.1/src/manage_sql.c:11488:14:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
          || chown (cert_path, nobody->pw_uid, nobody->pw_gid))
data/gvmd-9.0.1/src/manage_sql.c:18310:15:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
          if (chmod (path, 0755 /* rwxr-xr-x */))
data/gvmd-9.0.1/src/manage_sql.c:31222:14:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
          || chown (xml_dir, nobody->pw_uid, nobody->pw_gid)
data/gvmd-9.0.1/src/manage_sql.c:31223:14:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
          || chown (xml_file, nobody->pw_uid, nobody->pw_gid)
data/gvmd-9.0.1/src/manage_sql.c:31224:14:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
          || chown (output_file, nobody->pw_uid, nobody->pw_gid))
data/gvmd-9.0.1/src/manage_sql.c:46484:23:  [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.
              count = readlink (old, real_old, state.st_size + 1);
data/gvmd-9.0.1/src/manage_sql.c:46593:11:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
      if (chmod (report_dir, 0755 /* rwxr-xr-x */))
data/gvmd-9.0.1/src/manage_sql.c:46610:7:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  if (chmod (dir, 0755 /* rwxr-xr-x */))
data/gvmd-9.0.1/src/manage_sql.c:46668:15:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        ret = chmod (full_file_name, 0755 /* rwxr-xr-x */);
data/gvmd-9.0.1/src/manage_sql.c:46670:15:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        ret = chmod (full_file_name, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
data/gvmd-9.0.1/src/manage_sql.c:47025:7:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  if (chmod (tmp_dir, 0755 /* rwxr-xr-x */))
data/gvmd-9.0.1/src/manage_sql.c:47046:7:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  if (chmod (tmp_dir, 0755 /* rwxr-xr-x */))
data/gvmd-9.0.1/src/lsc_crypt.c:706:11:  [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 (nl->name, name);
data/gvmd-9.0.1/src/lsc_crypt.c:710:11:  [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 (((char *) nl) + (nl->name - (char *) nl), name);
data/gvmd-9.0.1/src/lsc_crypt.c:748:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (nl->name, name);
data/gvmd-9.0.1/src/lsc_crypt.c:752:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (((char *) nl) + (nl->name - (char *) nl), name);
data/gvmd-9.0.1/src/manage.c:610:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (string + offset, "%s", suffix);
data/gvmd-9.0.1/src/manage.c:6245:11:  [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 (pair, name_text);
data/gvmd-9.0.1/src/manage.c:6247:11:  [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 (pair, title_text);
data/gvmd-9.0.1/src/manage_sql.c:6475:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  if (sscanf (field, "%i/%s",
data/gvmd-9.0.1/src/manage_sql.c:9626:9:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  ret = system (command);
data/gvmd-9.0.1/src/manage_sql.c:9967:23:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                ret = system (command);
data/gvmd-9.0.1/src/manage_sql.c:10128:15:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        ret = system (command);
data/gvmd-9.0.1/src/manage_sql.c:10762:23:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                ret = system (command);
data/gvmd-9.0.1/src/manage_sql.c:10864:15:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        ret = system (command);
data/gvmd-9.0.1/src/manage_sql.c:11086:23:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                ret = system (command);
data/gvmd-9.0.1/src/manage_sql.c:11186:15:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        ret = system (command);
data/gvmd-9.0.1/src/manage_sql.c:17448:17:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
          ret = system (command);
data/gvmd-9.0.1/src/manage_sql.c:31265:21:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
              ret = system (command);
data/gvmd-9.0.1/src/manage_sql.c:31365:13:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      ret = system (command);
data/gvmd-9.0.1/src/manage_sql.c:33584:3:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  sscanf (port, "%s (%i/%s)", buff, &num, buff);
data/gvmd-9.0.1/src/manage_sql.c:55324:13:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      ret = system (command);
data/gvmd-9.0.1/src/manage_sql_secinfo.c:267:9:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  ret = system (command);
data/gvmd-9.0.1/src/gmp.c:184: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.
      tz = getenv ("TZ") ? g_strdup (getenv ("TZ")) : NULL;
data/gvmd-9.0.1/src/gmp.c:184:38:  [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.
      tz = getenv ("TZ") ? g_strdup (getenv ("TZ")) : NULL;
data/gvmd-9.0.1/src/gmp.c:9842:16:  [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.
  old_lc_all = getenv ("LC_ALL") ? g_strdup (getenv ("LC_ALL")) : NULL;
data/gvmd-9.0.1/src/gmp.c:9842:46:  [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.
  old_lc_all = getenv ("LC_ALL") ? g_strdup (getenv ("LC_ALL")) : NULL;
data/gvmd-9.0.1/src/gmp.c:9849:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  old_language = getenv ("LANGUAGE") ? g_strdup (getenv ("LANGUAGE")) : NULL;
data/gvmd-9.0.1/src/gmp.c:9849: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.
  old_language = getenv ("LANGUAGE") ? g_strdup (getenv ("LANGUAGE")) : NULL;
data/gvmd-9.0.1/src/gmp.c:13802:37:  [3] (buffer) g_get_tmp_dir:
  This function is synonymous with 'getenv("TMP")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
  lockfile_name = g_build_filename (g_get_tmp_dir (),
data/gvmd-9.0.1/src/gvmd.c:2026: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.
    if ((s=getenv ("GVM_GNUTLS_DEBUG")))
data/gvmd-9.0.1/src/manage.c:8929:37:  [3] (buffer) g_get_tmp_dir:
  This function is synonymous with 'getenv("TMP")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
  lockfile_name = g_build_filename (g_get_tmp_dir (), lockfile_basename, NULL);
data/gvmd-9.0.1/src/manage_sql.c:915:16:  [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.
          tz = getenv ("TZ") ? g_strdup (getenv ("TZ")) : NULL;
data/gvmd-9.0.1/src/manage_sql.c:915:42:  [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.
          tz = getenv ("TZ") ? g_strdup (getenv ("TZ")) : NULL;
data/gvmd-9.0.1/src/manage_sql.c:954:16:  [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.
          tz = getenv ("TZ") ? g_strdup (getenv ("TZ")) : NULL;
data/gvmd-9.0.1/src/manage_sql.c:954:42:  [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.
          tz = getenv ("TZ") ? g_strdup (getenv ("TZ")) : NULL;
data/gvmd-9.0.1/src/manage_sql.c:1028: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.
      tz = getenv ("TZ") ? g_strdup (getenv ("TZ")) : NULL;
data/gvmd-9.0.1/src/manage_sql.c:1028:38:  [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.
      tz = getenv ("TZ") ? g_strdup (getenv ("TZ")) : NULL;
data/gvmd-9.0.1/src/manage_sql.c:29899: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.
      tz = getenv ("TZ") ? g_strdup (getenv ("TZ")) : NULL;
data/gvmd-9.0.1/src/manage_sql.c:29899:38:  [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.
      tz = getenv ("TZ") ? g_strdup (getenv ("TZ")) : NULL;
data/gvmd-9.0.1/src/manage_sql.c:37070:39:  [3] (random) g_rand_int_range:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
      generated_password[i] = (gchar) g_rand_int_range (rand, '0', 'z');
data/gvmd-9.0.1/src/manage_sql.c:38957:22:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
              real = realpath (signature_filename, NULL);
data/gvmd-9.0.1/src/manage_sql.c:46448:18:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
      real_old = realpath (old, NULL);
data/gvmd-9.0.1/src/manage_sql_secinfo.c:4050:16:  [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.
      subdir = getenv ("PRIVATE_SUBDIR");
data/gvmd-9.0.1/src/manage_sql_secinfo.c:4337:25:  [3] (buffer) g_get_tmp_dir:
  This function is synonymous with 'getenv("TMP")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
    = g_build_filename (g_get_tmp_dir (), lockfile_basename, NULL);
data/gvmd-9.0.1/src/manage_utils.c:74:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  tz = getenv ("TZ") ? g_strdup (getenv ("TZ")) : NULL;
data/gvmd-9.0.1/src/manage_utils.c:74:34:  [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.
  tz = getenv ("TZ") ? g_strdup (getenv ("TZ")) : NULL;
data/gvmd-9.0.1/src/manage_utils.c:151:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  tz = getenv ("TZ") ? g_strdup (getenv ("TZ")) : NULL;
data/gvmd-9.0.1/src/manage_utils.c:151:34:  [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.
  tz = getenv ("TZ") ? g_strdup (getenv ("TZ")) : NULL;
data/gvmd-9.0.1/src/manage_utils.c:460: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.
      tz = getenv ("TZ") ? g_strdup (getenv ("TZ")) : NULL;
data/gvmd-9.0.1/src/manage_utils.c:460:38:  [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.
      tz = getenv ("TZ") ? g_strdup (getenv ("TZ")) : NULL;
data/gvmd-9.0.1/src/utils.c:126:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  tz = getenv ("TZ") ? g_strdup (getenv ("TZ")) : NULL;
data/gvmd-9.0.1/src/utils.c:126:34:  [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.
  tz = getenv ("TZ") ? g_strdup (getenv ("TZ")) : NULL;
data/gvmd-9.0.1/src/utils.c:337:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  tz = getenv ("TZ") ? g_strdup (getenv ("TZ")) : NULL;
data/gvmd-9.0.1/src/utils.c:337:34:  [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.
  tz = getenv ("TZ") ? g_strdup (getenv ("TZ")) : NULL;
data/gvmd-9.0.1/src/gmp.c:201: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).
      given_broken.tm_min = (minute ? atoi (minute) : now_broken->tm_min);
data/gvmd-9.0.1/src/gmp.c:202: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).
      given_broken.tm_hour = (hour ? atoi (hour) : now_broken->tm_hour);
data/gvmd-9.0.1/src/gmp.c:204:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                               ? atoi (day_of_month)
data/gvmd-9.0.1/src/gmp.c:206: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).
      given_broken.tm_mon = (month ? (atoi (month) - 1) : now_broken->tm_mon);
data/gvmd-9.0.1/src/gmp.c:207: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).
      given_broken.tm_year = (year ? (atoi (year) - 1900) : now_broken->tm_year);
data/gvmd-9.0.1/src/gmp.c:293:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          *months = atoi (value);
data/gvmd-9.0.1/src/gmp.c:301:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          *months = atoi (value);
data/gvmd-9.0.1/src/gmp.c:310:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          *months = atoi (value);
data/gvmd-9.0.1/src/gmp.c:4694:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char to_client[TO_CLIENT_BUFFER_SIZE];
data/gvmd-9.0.1/src/gmp.c:5987:50:  [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).
              get_aggregates_data->first_group = atoi (attribute) - 1;
data/gvmd-9.0.1/src/gmp.c:5993:49:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
              get_aggregates_data->max_groups = atoi (attribute);
data/gvmd-9.0.1/src/gmp.c:6311:40:  [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).
              get_reports_data->lean = atoi (attribute);
data/gvmd-9.0.1/src/gmp.c:6335:53:  [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).
              get_reports_data->ignore_pagination = atoi (attribute);
data/gvmd-9.0.1/src/gmp.c:6433:42:  [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).
              get_settings_data->first = atoi (attribute) - 1;
data/gvmd-9.0.1/src/gmp.c:6441:40:  [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).
              get_settings_data->max = atoi (attribute);
data/gvmd-9.0.1/src/gmp.c:9139:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (out, start, end - start);
data/gvmd-9.0.1/src/gmp.c:11823: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).
              manage_range->end = atoi (range->end);
data/gvmd-9.0.1/src/gmp.c:11825: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).
              manage_range->start = atoi (range->start);
data/gvmd-9.0.1/src/gmp.c:12519:22:  [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).
            notice = atoi (alert_data_iterator_data (&data));
data/gvmd-9.0.1/src/gmp.c:13808:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  lockfile = open (lockfile_name,
data/gvmd-9.0.1/src/gmp.c:24339:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                         ? atoi (create_task_data->schedule_periods)
data/gvmd-9.0.1/src/gmp.c:24379:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
              atoi (create_task_data->schedule_periods));
data/gvmd-9.0.1/src/gmp.c:25478:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
             = atoi (modify_config_data->family_selection_growing_text);
data/gvmd-9.0.1/src/gmp.c:25491:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
             = atoi (modify_config_data->family_selection_family_all_text);
data/gvmd-9.0.1/src/gmp.c:25504:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
             = atoi (modify_config_data->family_selection_family_growing_text);
data/gvmd-9.0.1/src/gmpd.c:64:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char from_client[FROM_BUFFER_SIZE];
data/gvmd-9.0.1/src/gvmd.c:257:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char client_address[INET6_ADDRSTRLEN];
data/gvmd-9.0.1/src/gvmd.c:399:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[1];
data/gvmd-9.0.1/src/gvmd.c:1429:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          port = atoi (port_str);
data/gvmd-9.0.1/src/gvmd.c:2029: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).
        gnutls_global_set_log_level (atoi (s));
data/gvmd-9.0.1/src/gvmd.c:2315:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          type = atoi (scanner_type);
data/gvmd-9.0.1/src/gvmd.c:2362:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
              type = atoi (scanner_type);
data/gvmd-9.0.1/src/gvmd.c:2685: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).
  log_stream = fopen (LOG_FILE, "w");
data/gvmd-9.0.1/src/lsc_crypt.c:81:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[1];            ///< The name.
data/gvmd-9.0.1/src/lsc_crypt.c:133:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char tmp[4];
data/gvmd-9.0.1/src/lsc_crypt.c:728:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              memcpy (nl->value, p, n);
data/gvmd-9.0.1/src/lsc_user.c:572:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fd = fopen (script_name, "w");
data/gvmd-9.0.1/src/manage.c:419: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.
          unsigned char buffer[buffer_size];
data/gvmd-9.0.1/src/manage.c:444: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.
          unsigned char buffer[buffer_size];
data/gvmd-9.0.1/src/manage.c:1697:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                             atoi (entity_text (entity)));
data/gvmd-9.0.1/src/manage.c:2592: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).
            ssh_port = atoi (port);
data/gvmd-9.0.1/src/manage.c:2613: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).
            = reverse_lookup_only ? atoi (reverse_lookup_only) : 0;
data/gvmd-9.0.1/src/manage.c:2615: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).
            = reverse_lookup_unify ? atoi (reverse_lookup_unify) : 0;
data/gvmd-9.0.1/src/manage.c:4513: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 *report_id, title[128], *error = NULL;
data/gvmd-9.0.1/src/manage.c:4804: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 *report_id, title[128], *hosts;
data/gvmd-9.0.1/src/manage.c:5105: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 title[128], *uuid;
data/gvmd-9.0.1/src/manage.c:5476:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                  *new_port = atoi (entity_text (port_entity));
data/gvmd-9.0.1/src/manage.c:6661:22:  [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).
      duration_num = atol (duration);
data/gvmd-9.0.1/src/manage.c:7011: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 title[128];
data/gvmd-9.0.1/src/manage.c:7218: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 title[128];
data/gvmd-9.0.1/src/manage.c:8443:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      static char time_string[100];
data/gvmd-9.0.1/src/manage.c:8931:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  lockfile = open (lockfile_name, O_RDWR | O_CREAT | O_APPEND,
data/gvmd-9.0.1/src/manage.c:9284:20:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
          xsl_fd = mkstemp (xsl_file_name);
data/gvmd-9.0.1/src/manage.c:9314:20:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
          xml_fd = mkstemp (xml_file_name);
data/gvmd-9.0.1/src/manage.c:9462:24:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
              xsl_fd = mkstemp (extra_xsl_file_name);
data/gvmd-9.0.1/src/manage.c:9492:24:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
              xml_fd = mkstemp (extra_xml_file_name);
data/gvmd-9.0.1/src/manage_pg_server.c:54:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (ret, VARDATA (text_arg), length);
data/gvmd-9.0.1/src/manage_pg_server.c:80:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        max_hosts = atoi (cell);
data/gvmd-9.0.1/src/manage_sql.c:1530:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char dummy[2];
data/gvmd-9.0.1/src/manage_sql.c:1537:42:  [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).
          keyword->integer_value = now + atoi (keyword->string);
data/gvmd-9.0.1/src/manage_sql.c:1544: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).
          keyword->integer_value = now + (atoi (keyword->string) * 60);
data/gvmd-9.0.1/src/manage_sql.c:1551: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).
          keyword->integer_value = now + (atoi (keyword->string) * 3600);
data/gvmd-9.0.1/src/manage_sql.c:1558: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).
          keyword->integer_value = now + (atoi (keyword->string) * 86400);
data/gvmd-9.0.1/src/manage_sql.c:1565:42:  [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).
          keyword->integer_value = now + atoi (keyword->string) * 604800;
data/gvmd-9.0.1/src/manage_sql.c:1572:53:  [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).
          keyword->integer_value = add_months (now, atoi (keyword->string));
data/gvmd-9.0.1/src/manage_sql.c:1580:48:  [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).
                                               atoi (keyword->string) * 12);
data/gvmd-9.0.1/src/manage_sql.c:1610:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      keyword->integer_value = atoi (keyword->string);
data/gvmd-9.0.1/src/manage_sql.c:2219: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).
              *first = atoi (keyword->string);
data/gvmd-9.0.1/src/manage_sql.c:2239:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
              *max = atoi (keyword->string);
data/gvmd-9.0.1/src/manage_sql.c:2305:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            *val = atoi (keyword->string);
data/gvmd-9.0.1/src/manage_sql.c:2401: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).
              *first = atoi (keyword->string);
data/gvmd-9.0.1/src/manage_sql.c:2424:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
              *max = atoi (keyword->string);
data/gvmd-9.0.1/src/manage_sql.c:2611:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        max = atoi (keyword->string);
data/gvmd-9.0.1/src/manage_sql.c:3786:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
              *first_return = atoi (keyword->string) - 1;
data/gvmd-9.0.1/src/manage_sql.c:3798:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            *max_return = atoi (keyword->string);
data/gvmd-9.0.1/src/manage_sql.c:6362:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      number = atoi (version);
data/gvmd-9.0.1/src/manage_sql.c:6396:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      number = atoi (version);
data/gvmd-9.0.1/src/manage_sql.c:6430:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      number = atoi (version);
data/gvmd-9.0.1/src/manage_sql.c:6721:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  int one = atoi (one_arg);
data/gvmd-9.0.1/src/manage_sql.c:6722:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  int two = atoi (two_arg);
data/gvmd-9.0.1/src/manage_sql.c:6747: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 one_a[4], one_b[4], one_c[4], one_d[4];
data/gvmd-9.0.1/src/manage_sql.c:6748: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 two_a[4], two_b[4], two_c[4], two_d[4];
data/gvmd-9.0.1/src/manage_sql.c:9453:16:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
  content_fd = mkstemp (content_file_name);
data/gvmd-9.0.1/src/manage_sql.c:9488:22:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
          plain_fd = mkstemp (plain_file_name);
data/gvmd-9.0.1/src/manage_sql.c:9592:13:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
  args_fd = mkstemp (args_file_name);
data/gvmd-9.0.1/src/manage_sql.c:9776:7:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
  if (mkstemp (*error_path) == -1)
data/gvmd-9.0.1/src/manage_sql.c:9790:11:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
      if (mkstemp (*extra_path) == -1)
data/gvmd-9.0.1/src/manage_sql.c:11603:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                  char time_string[100];
data/gvmd-9.0.1/src/manage_sql.c:11774:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                  char time_string[100];
data/gvmd-9.0.1/src/manage_sql.c:12326: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).
                                        atoi (include_notes),
data/gvmd-9.0.1/src/manage_sql.c:12341: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).
                                        atoi (include_overrides),
data/gvmd-9.0.1/src/manage_sql.c:13954: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).
            tls_cert_workaround = !!(atoi (tls_cert_workaround_str));
data/gvmd-9.0.1/src/manage_sql.c:14537:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
              count = atoi (count_string);
data/gvmd-9.0.1/src/manage_sql.c:14623:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
              count = atoi (count_string);
data/gvmd-9.0.1/src/manage_sql.c:20955:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      keep = atoi (keep_string);
data/gvmd-9.0.1/src/manage_sql.c:28830:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char start[200], end[200];
data/gvmd-9.0.1/src/manage_sql.c:28850:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy (start, "(not started)");
data/gvmd-9.0.1/src/manage_sql.c:28870:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy (end, "(not finished)");
data/gvmd-9.0.1/src/manage_sql.c:29792:9:  [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).
  out = fopen (xml_start, "w");
data/gvmd-9.0.1/src/manage_sql.c:30907:9:  [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).
  out = fopen (xml_full, "a");
data/gvmd-9.0.1/src/manage_sql.c:31688: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 chunk[MANAGE_SEND_REPORT_CHUNK_SIZE + 1];
data/gvmd-9.0.1/src/manage_sql.c:31769:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  stream = fopen (output_file, "r");
data/gvmd-9.0.1/src/manage_sql.c:31945:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      start_time = atoi (str);
data/gvmd-9.0.1/src/manage_sql.c:31953:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      end_time = atoi (str);
data/gvmd-9.0.1/src/manage_sql.c:32027:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      qod_int = atoi (qod);
data/gvmd-9.0.1/src/manage_sql.c:33243:46:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  if (alterable && (task_alterable (task) != atoi (alterable)))
data/gvmd-9.0.1/src/manage_sql.c:33269:36:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      periods = schedule_periods ? atoi (schedule_periods) : 0;
data/gvmd-9.0.1/src/manage_sql.c:33284:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                               atoi (schedule_periods));
data/gvmd-9.0.1/src/manage_sql.c:33579:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  num = atoi (port);
data/gvmd-9.0.1/src/manage_sql.c:34409:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
              port_int = atoi (ssh_port);
data/gvmd-9.0.1/src/manage_sql.c:39064:18:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
  installer_fd = mkstemp (installer_file);
data/gvmd-9.0.1/src/manage_sql.c:39077:18:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
  signature_fd = mkstemp (signature_file);
data/gvmd-9.0.1/src/manage_sql.c:40233:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
             ? (time (NULL) + (atoi (active) * 60 * 60 * 24))
data/gvmd-9.0.1/src/manage_sql.c:40523: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).
                 ? (time (NULL) + atoi (active) * 60 * 60 * 24)
data/gvmd-9.0.1/src/manage_sql.c:41283:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
             ? (time (NULL) + (atoi (active) * 60 * 60 * 24))
data/gvmd-9.0.1/src/manage_sql.c:41734:46:  [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).
                            ? (time (NULL) + atoi (active) * 60 * 60 * 24)
data/gvmd-9.0.1/src/manage_sql.c:43073:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  iport = atoi (port);
data/gvmd-9.0.1/src/manage_sql.c:43074:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  itype = atoi (type);
data/gvmd-9.0.1/src/manage_sql.c:43209:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      iport = atoi (port);
data/gvmd-9.0.1/src/manage_sql.c:43219:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      itype = atoi (type);
data/gvmd-9.0.1/src/manage_sql.c:44035: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).
  port = atoi (str);
data/gvmd-9.0.1/src/manage_sql.c:44055: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).
  type = atoi (str);
data/gvmd-9.0.1/src/manage_sql.c:52843:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  first = atoi (start);
data/gvmd-9.0.1/src/manage_sql.c:52847: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).
  last = atoi (end);
data/gvmd-9.0.1/src/manage_sql.c:54520:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      ret = autofp_str ? atoi (autofp_str) : 0;
data/gvmd-9.0.1/src/manage_sql.c:54546:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
              ? atoi (min_qod_str) : MIN_QOD_DEFAULT;
data/gvmd-9.0.1/src/manage_sql.c:57339:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            min_qod = atoi (value);
data/gvmd-9.0.1/src/manage_sql.c:59613:50:  [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).
          current_credentials.dynamic_severity = atoi (value);
data/gvmd-9.0.1/src/manage_sql.c:60140:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      max_rows = atoi (value);
data/gvmd-9.0.1/src/manage_sql.c:60153:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      period = atoi (value);
data/gvmd-9.0.1/src/manage_sql.c:60186:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      max_rows = atoi (value);
data/gvmd-9.0.1/src/manage_sql_configs.c:1189:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      type = atoi (selector->type);
data/gvmd-9.0.1/src/manage_sql_configs.c:1921:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                      keep = atoi (pair->value);
data/gvmd-9.0.1/src/manage_sql_configs.c:2581: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).
  type = atoi (str);
data/gvmd-9.0.1/src/manage_sql_nvts.c:1308:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  nvti_set_category (nvti, atoi (entity_text (category)));
data/gvmd-9.0.1/src/manage_sql_secinfo.c:1867:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                              && atoi (*point + 4) > 0)
data/gvmd-9.0.1/src/manage_sql_secinfo.c:4339:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  *lockfile = open (lockfile_name,
data/gvmd-9.0.1/src/manage_utils.c:68:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[100];
data/gvmd-9.0.1/src/manage_utils.c:107:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      mins = atoi (buf);
data/gvmd-9.0.1/src/manage_utils.c:110:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      mins += atoi (buf + 3);
data/gvmd-9.0.1/src/sql_pg.c:122:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char string[20];
data/gvmd-9.0.1/src/sql_pg.c:862:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        return atoi (cell);
data/gvmd-9.0.1/src/sql_pg.c:892:16:  [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).
        return atol (cell);
data/gvmd-9.0.1/src/sql_pg.c:905:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char errbuf[256] = "";
data/gvmd-9.0.1/src/utils.c:262:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char time_string[100];
data/gvmd-9.0.1/src/utils.c:295:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          static char abbrev_string[100];
data/gvmd-9.0.1/src/utils.c:392:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fd = open (lockfile_name, O_RDWR | O_CREAT | O_APPEND,
data/gvmd-9.0.1/src/gmp.c:347: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).
  data.size = strlen (cert_str);
data/gvmd-9.0.1/src/gmp.c:465: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).
  data.size = strlen (key_str);
data/gvmd-9.0.1/src/gmp.c:9094:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  new = g_malloc (strlen (text) + 1);
data/gvmd-9.0.1/src/gmp.c:9247:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                    strlen (excerpt) < strlen (text),
data/gvmd-9.0.1/src/gmp.c:9247:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                    strlen (excerpt) < strlen (text),
data/gvmd-9.0.1/src/gmp.c:9517:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                    strlen (excerpt) < strlen (text),
data/gvmd-9.0.1/src/gmp.c:9517:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                    strlen (excerpt) < strlen (text),
data/gvmd-9.0.1/src/gmp.c:9811:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  g_file_set_contents (one_file, c_one, strlen (c_one), &error);
data/gvmd-9.0.1/src/gmp.c:9828:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  g_file_set_contents (two_file, c_two, strlen (c_two), &error);
data/gvmd-9.0.1/src/gmp.c:9966: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 (lean == 0 || strlen (temp_buffer->str))
data/gvmd-9.0.1/src/gmp.c:10016: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 (lean == 0 || strlen (temp_buffer->str))
data/gvmd-9.0.1/src/gmp.c:10411: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).
      && (lean == 0 || strlen (comment)))
data/gvmd-9.0.1/src/gmp.c:10521:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (asset_id && strlen (asset_id))
data/gvmd-9.0.1/src/gmp.c:10557:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (qod_type && strlen (qod_type))
data/gvmd-9.0.1/src/gmp.c:11065:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          if (strlen (word) >= 3
data/gvmd-9.0.1/src/gmp.c:11975:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen (get_agents_data->format))
data/gvmd-9.0.1/src/gmp.c:12523:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              if (strlen (alert_data_iterator_data (&data)) == 0)
data/gvmd-9.0.1/src/gmp.c:13172:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              if (timeout && strlen (timeout))
data/gvmd-9.0.1/src/gmp.c:13288:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen (data_format))
data/gvmd-9.0.1/src/gmp.c:14208:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (user_filter && strlen (user_filter))
data/gvmd-9.0.1/src/gmp.c:15677:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      || (strlen (get_reports_data->report_get.id) == 0))
data/gvmd-9.0.1/src/gmp.c:17650: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).
          && strlen (setting_iterator_value (&settings)))
data/gvmd-9.0.1/src/gmp.c:19807:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      || strlen (modify_config_data->config_id) == 0)
data/gvmd-9.0.1/src/gmp.c:19963:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
           || strlen (modify_config_data->preference_name) == 0)
data/gvmd-9.0.1/src/gmp.c:20067: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).
                        && strlen (current_credentials.timezone))
data/gvmd-9.0.1/src/gmp.c:20732:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    for (count = 23 - strlen ((*commands).name);
data/gvmd-9.0.1/src/gmp.c:20799:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    if (output && strlen (output))
data/gvmd-9.0.1/src/gmp.c:20909: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).
          else if (strlen (create_agent_data->name) == 0)
data/gvmd-9.0.1/src/gmp.c:20916: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).
          else if (strlen (create_agent_data->installer) == 0)
data/gvmd-9.0.1/src/gmp.c:21154: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).
          else if (strlen (create_alert_data->name) == 0)
data/gvmd-9.0.1/src/gmp.c:21159: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).
          else if (strlen (create_alert_data->condition) == 0)
data/gvmd-9.0.1/src/gmp.c:21164: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).
          else if (strlen (create_alert_data->event) == 0)
data/gvmd-9.0.1/src/gmp.c:21169: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).
          else if (strlen (create_alert_data->method) == 0)
data/gvmd-9.0.1/src/gmp.c:21484: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).
          string[strlen (create_alert_data->part_name)] = '\0';
data/gvmd-9.0.1/src/gmp.c:21510: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).
          string[strlen (create_alert_data->part_name)] = '\0';
data/gvmd-9.0.1/src/gmp.c:21534: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).
          string[strlen (create_alert_data->part_name)] = '\0';
data/gvmd-9.0.1/src/gmp.c:21598: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).
          else if (strlen (create_credential_data->name) == 0)
data/gvmd-9.0.1/src/gmp.c:21606:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                   && strlen (create_credential_data->login) == 0)
data/gvmd-9.0.1/src/gmp.c:21853: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).
          else if (strlen (create_filter_data->name) == 0)
data/gvmd-9.0.1/src/gmp.c:21970: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).
          else if (strlen (create_group_data->name) == 0)
data/gvmd-9.0.1/src/gmp.c:22431: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).
          else if (strlen (create_permission_data->name) == 0)
data/gvmd-9.0.1/src/gmp.c:22551: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).
              else if (strlen (create_port_list_data->name) == 0)
data/gvmd-9.0.1/src/gmp.c:22561: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).
              else if (strlen (create_port_list_data->id) == 0)
data/gvmd-9.0.1/src/gmp.c:22674: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).
          else if (strlen (create_port_list_data->name) == 0)
data/gvmd-9.0.1/src/gmp.c:23286: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).
              else if (strlen (create_report_format_data->name) == 0)
data/gvmd-9.0.1/src/gmp.c:23296: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).
              else if (strlen (create_report_format_data->id) == 0)
data/gvmd-9.0.1/src/gmp.c:23438: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).
          string[strlen (create_report_format_data->file_name)] = '\0';
data/gvmd-9.0.1/src/gmp.c:23569: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).
          else if (strlen (create_role_data->name) == 0)
data/gvmd-9.0.1/src/gmp.c:23722: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).
          else if (strlen (create_tag_data->name) == 0)
data/gvmd-9.0.1/src/gmp.c:23881: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).
          else if (strlen (create_target_data->name) == 0)
data/gvmd-9.0.1/src/gmp.c:23892:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                   && strlen (create_target_data->hosts) == 0)
data/gvmd-9.0.1/src/gmp.c:24376:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                   && strlen (create_task_data->schedule_periods))
data/gvmd-9.0.1/src/gmp.c:24635: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).
              || strlen (create_user_data->name) == 0)
data/gvmd-9.0.1/src/gmp.c:24844:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          if (strlen (modify_alert_data->event)
data/gvmd-9.0.1/src/gmp.c:24849: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).
          else if (strlen (modify_alert_data->condition) &&
data/gvmd-9.0.1/src/gmp.c:24856: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).
          else if (strlen (modify_alert_data->method) &&
data/gvmd-9.0.1/src/gmp.c:25169: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).
          string[strlen (modify_alert_data->part_name)] = '\0';
data/gvmd-9.0.1/src/gmp.c:25193: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).
          string[strlen (modify_alert_data->part_name)] = '\0';
data/gvmd-9.0.1/src/gmp.c:25217: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).
          string[strlen (modify_alert_data->part_name)] = '\0';
data/gvmd-9.0.1/src/gmp.c:27326:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  && (strlen (modify_user_data->name) == 0))
data/gvmd-9.0.1/src/gmp.c:27328:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  && (strlen (modify_user_data->user_id) == 0)))
data/gvmd-9.0.1/src/gmp.c:29622:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                          strlen (command),
data/gvmd-9.0.1/src/gmp_configs.c:157:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      && strlen (entity_text (entity)))
data/gvmd-9.0.1/src/gmp_configs.c:316:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              else if (hr_name && strlen (entity_text (hr_name)))
data/gvmd-9.0.1/src/gmp_configs.c:497: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).
  if (scanner && strlen (entity_text (scanner)))
data/gvmd-9.0.1/src/gmp_configs.c:561:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (((name == NULL) || (strlen (entity_text (name)) == 0))
data/gvmd-9.0.1/src/gmp_configs.c:562: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).
      && ((copy == NULL) || (strlen (entity_text (copy)) == 0)))
data/gvmd-9.0.1/src/gmp_get.c:121:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (get->filter_replace && strlen (get->filter_replace) && get->filter)
data/gvmd-9.0.1/src/gmp_get.c:132:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (user_filter && strlen (user_filter))
data/gvmd-9.0.1/src/gmp_get.c:158:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          if (user_filter && strlen (user_filter))
data/gvmd-9.0.1/src/gmp_get.c:523:20:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
      if (keyword->equal)
data/gvmd-9.0.1/src/gmp_tickets.c:243: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).
          && strlen (ticket_iterator_fixed_time (&tickets)))
data/gvmd-9.0.1/src/gmp_tickets.c:252: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).
          && strlen (ticket_iterator_closed_time (&tickets)))
data/gvmd-9.0.1/src/gmp_tickets.c:261: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).
          && strlen (ticket_iterator_fix_verified_time (&tickets)))
data/gvmd-9.0.1/src/gmp_tickets.c:502:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if ((result_id == NULL) || (strlen (result_id) == 0))
data/gvmd-9.0.1/src/gmp_tickets.c:507:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  else if ((user_id == NULL) || (strlen (user_id) == 0))
data/gvmd-9.0.1/src/gmp_tickets.c:512:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  else if (strlen (entity_text (open_note)) == 0)
data/gvmd-9.0.1/src/gmp_tickets.c:709:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if ((user_id == NULL) || (strlen (user_id) == 0))
data/gvmd-9.0.1/src/gmp_tickets_tests.c:81: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).
  create_ticket_element_text (uuid, strlen (uuid));
data/gvmd-9.0.1/src/gmp_tickets_tests.c:85: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).
  create_ticket_element_text (uuid, strlen (uuid));
data/gvmd-9.0.1/src/gmpd.c:137:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      count = read (client_socket,
data/gvmd-9.0.1/src/gmpd.c:368:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         < strlen (msg))
data/gvmd-9.0.1/src/gmpd.c:382: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).
                    strlen (msg));
data/gvmd-9.0.1/src/gmpd.c:392: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).
      if (length > strlen (msg))
data/gvmd-9.0.1/src/gmpd.c:401:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen (msg))
data/gvmd-9.0.1/src/gmpd.c:403:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      assert (strlen (msg)
data/gvmd-9.0.1/src/gmpd.c:405:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      memmove (to_client + to_client_end, msg, strlen (msg));
data/gvmd-9.0.1/src/gmpd.c:407: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).
      to_client_end += strlen (msg);
data/gvmd-9.0.1/src/gvmd.c:1394:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (address_unix.sun_path,
data/gvmd-9.0.1/src/gvmd.c:2012:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  umask (S_IRGRP | S_IWGRP | S_IXGRP | S_IROTH | S_IWOTH | S_IXOTH);
data/gvmd-9.0.1/src/lsc_crypt.c:581:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len = strlen (name);
data/gvmd-9.0.1/src/lsc_crypt.c:586: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).
          len = strlen (value);
data/gvmd-9.0.1/src/lsc_crypt.c:677:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  namelen = strlen (name);
data/gvmd-9.0.1/src/lsc_user.c:79: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).
  if (!passphrase || strlen (passphrase) < 5)
data/gvmd-9.0.1/src/lsc_user.c:315:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  g_file_set_contents (public_key_path, public_key, strlen (public_key),
data/gvmd-9.0.1/src/lsc_user.c:507:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  g_file_set_contents (public_key_path, public_key, strlen (public_key),
data/gvmd-9.0.1/src/manage.c:212: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).
            cert_end += strlen ("-----END CERTIFICATE-----");
data/gvmd-9.0.1/src/manage.c:223: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).
            cert_end += strlen ("-----END TRUSTED CERTIFICATE-----");
data/gvmd-9.0.1/src/manage.c:234: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).
            cert_end += strlen ("-----END PKCS7-----");
data/gvmd-9.0.1/src/manage.c:268: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).
        key_end += strlen ("-----END RSA PRIVATE KEY-----");
data/gvmd-9.0.1/src/manage.c:281: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).
            key_end += strlen ("-----END DSA PRIVATE KEY-----");
data/gvmd-9.0.1/src/manage.c:295: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).
            key_end += strlen ("-----END EC PRIVATE KEY-----");
data/gvmd-9.0.1/src/manage.c:387:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        cert_datum.size = strlen (cert_truncated);
data/gvmd-9.0.1/src/manage.c:571:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen (string) <= max_len)
data/gvmd-9.0.1/src/manage.c:579:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (suffix && strlen (suffix) < max_len)
data/gvmd-9.0.1/src/manage.c:580:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        offset = offset - strlen (suffix);
data/gvmd-9.0.1/src/manage.c:609:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (suffix && strlen (suffix) < max_len)
data/gvmd-9.0.1/src/manage.c:635: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).
  orig_len = strlen (string);
data/gvmd-9.0.1/src/manage.c:2704: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).
            if (timeout && strlen (timeout)
data/gvmd-9.0.1/src/manage.c:3806:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                           strlen (private_key));
data/gvmd-9.0.1/src/manage.c:4087:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      && (hosts_allow || (hosts && strlen (hosts))))
data/gvmd-9.0.1/src/manage.c:4106: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).
      && (ifaces_allow || (ifaces && strlen (ifaces))))
data/gvmd-9.0.1/src/manage.c:4337:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            osp_value = g_base64_encode ((guchar*) value, strlen (value));
data/gvmd-9.0.1/src/manage.c:6244:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          *end = pair = g_malloc (strlen (name_text) + strlen (title_text) + 2);
data/gvmd-9.0.1/src/manage.c:6244:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          *end = pair = g_malloc (strlen (name_text) + strlen (title_text) + 2);
data/gvmd-9.0.1/src/manage.c:6246:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          pair += strlen (name_text) + 1;
data/gvmd-9.0.1/src/manage.c:6338: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).
          (*start)[0][strlen ("fallback")] = '\0';
data/gvmd-9.0.1/src/manage.c:6482: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).
  return name + strlen (name) + 1;
data/gvmd-9.0.1/src/manage.c:6872:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          safe = g_markup_escape_text (output, strlen (output));
data/gvmd-9.0.1/src/manage.c:6883:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (astdout == NULL || strlen (astdout) == 0)
data/gvmd-9.0.1/src/manage.c:7569:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int length = strlen (name);
data/gvmd-9.0.1/src/manage.c:8097:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  else if (strlen (standard_out) == 0)
data/gvmd-9.0.1/src/manage.c:8147:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
               ? g_markup_escape_text (name, strlen (name))
data/gvmd-9.0.1/src/manage.c:9429:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  || (strlen (status) == 0)
data/gvmd-9.0.1/src/manage.h:3533:7:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  int equal;                     ///< Whether the keyword is like "=example".
data/gvmd-9.0.1/src/manage_acl.c:58:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen (current_credentials.uuid) == 0)
data/gvmd-9.0.1/src/manage_acl.c:807:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          || (strlen (permission) > 3 && strncmp (permission, "get", 3) == 0)))
data/gvmd-9.0.1/src/manage_acl.c:855: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).
         || (strlen (permission) > 3 && strncmp (permission, "get", 3) == 0));
data/gvmd-9.0.1/src/manage_sql.c:693: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 (under && (strlen (under) > 1))
data/gvmd-9.0.1/src/manage_sql.c:698:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (command[strlen (command) - 1] == 's')
data/gvmd-9.0.1/src/manage_sql.c:699: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).
        command[strlen (command) - 1] = '\0';
data/gvmd-9.0.1/src/manage_sql.c:1180:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if ((strlen (*point) > strlen (tag))
data/gvmd-9.0.1/src/manage_sql.c:1180:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if ((strlen (*point) > strlen (tag))
data/gvmd-9.0.1/src/manage_sql.c:1181: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).
          && (strncmp (*point, tag, strlen (tag)) == 0)
data/gvmd-9.0.1/src/manage_sql.c:1182: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).
          && ((*point)[strlen (tag)] == '='))
data/gvmd-9.0.1/src/manage_sql.c:1185:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          ret = g_strdup (*point + strlen (tag) + 1);
data/gvmd-9.0.1/src/manage_sql.c:1515:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (*string && *string == '-' && strlen (string) > 1) string++;
data/gvmd-9.0.1/src/manage_sql.c:1594:16:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
      else if (sscanf (keyword->string, "%d%1s", &parsed_integer, dummy) == 1)
data/gvmd-9.0.1/src/manage_sql.c:1599:16:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
      else if (sscanf (keyword->string, "%lf%1s", &parsed_double, dummy) == 1
data/gvmd-9.0.1/src/manage_sql.c:2126:32:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
            else if ((keyword->equal || keyword->approx)
data/gvmd-9.0.1/src/manage_sql.c:2480:51:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
              if (search_phrase_exact && keyword->equal)
data/gvmd-9.0.1/src/manage_sql.c:2661: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).
          && strlen (column)
data/gvmd-9.0.1/src/manage_sql.c:2697:24:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
          if (keyword->equal)
data/gvmd-9.0.1/src/manage_sql.c:3354:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          && (strlen (keyword->string) == 0))
data/gvmd-9.0.1/src/manage_sql.c:3860:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              && (strlen (keyword->column) > 3)
data/gvmd-9.0.1/src/manage_sql.c:3861: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).
              && (strcmp (keyword->column + strlen (keyword->column) - 3, "_id")
data/gvmd-9.0.1/src/manage_sql.c:3870: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).
                                     strlen (keyword->column) - 3);
data/gvmd-9.0.1/src/manage_sql.c:4109:25:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
      else if (keyword->equal)
data/gvmd-9.0.1/src/manage_sql.c:4328:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen (clause->str))
data/gvmd-9.0.1/src/manage_sql.c:4876:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (named && comment && strlen (comment))
data/gvmd-9.0.1/src/manage_sql.c:4879: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).
      quoted_comment = sql_nquote (comment, strlen (comment));
data/gvmd-9.0.1/src/manage_sql.c:5353:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen (order) == 0)
data/gvmd-9.0.1/src/manage_sql.c:6473: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).
  protocol = g_newa (char, strlen (field));
data/gvmd-9.0.1/src/manage_sql.c:7249:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      && strlen (*data) > 80)
data/gvmd-9.0.1/src/manage_sql.c:7254:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      && strlen (*data) > max_email_message_length)
data/gvmd-9.0.1/src/manage_sql.c:7310:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          if (username == NULL || strlen (username) == 0)
data/gvmd-9.0.1/src/manage_sql.c:7329:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen (*data) == 0)
data/gvmd-9.0.1/src/manage_sql.c:7457:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              if (username == NULL || strlen (username) == 0)
data/gvmd-9.0.1/src/manage_sql.c:7803:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      gchar *data = sql_quote (item + strlen (item) + 1);
data/gvmd-9.0.1/src/manage_sql.c:7842:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      gchar *data = sql_quote (item + strlen (item) + 1);
data/gvmd-9.0.1/src/manage_sql.c:7878: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).
      data = sql_quote (item + strlen (item) + 1);
data/gvmd-9.0.1/src/manage_sql.c:8169:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          gchar *data = sql_quote (item + strlen (item) + 1);
data/gvmd-9.0.1/src/manage_sql.c:8214:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          gchar *data = sql_quote (item + strlen (item) + 1);
data/gvmd-9.0.1/src/manage_sql.c:8259:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          data = sql_quote (item + strlen (item) + 1);
data/gvmd-9.0.1/src/manage_sql.c:9233:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len = strlen (attachment);
data/gvmd-9.0.1/src/manage_sql.c:9605: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).
                       strlen (sendmail_args),
data/gvmd-9.0.1/src/manage_sql.c:9700:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen (standard_out) > 80)
data/gvmd-9.0.1/src/manage_sql.c:10006:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                                 strlen (*message),
data/gvmd-9.0.1/src/manage_sql.c:10450: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).
                           password, strlen (password),
data/gvmd-9.0.1/src/manage_sql.c:10461:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                 private_key, strlen (private_key),
data/gvmd-9.0.1/src/manage_sql.c:10552: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).
                          authfile_content, strlen (authfile_content),
data/gvmd-9.0.1/src/manage_sql.c:10599: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).
  g_file_set_contents (report_file, report, strlen (report), &error);
data/gvmd-9.0.1/src/manage_sql.c:10610:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen (pkcs12_64))
data/gvmd-9.0.1/src/manage_sql.c:11458:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                           auth_config, strlen (auth_config),
data/gvmd-9.0.1/src/manage_sql.c:11470:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                           certificate, strlen (certificate),
data/gvmd-9.0.1/src/manage_sql.c:11589:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  for (formatting = 0, point = subject, end = (subject + strlen (subject));
data/gvmd-9.0.1/src/manage_sql.c:11751:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  for (formatting = 0, point = message, end = (message + strlen (message));
data/gvmd-9.0.1/src/manage_sql.c:11979:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  for (formatting = 0, point = message, end = (message + strlen (message));
data/gvmd-9.0.1/src/manage_sql.c:12120: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 (alert_subject && strlen (alert_subject))
data/gvmd-9.0.1/src/manage_sql.c:12133:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (message == NULL || strlen (message) == 0)
data/gvmd-9.0.1/src/manage_sql.c:12152: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).
          || strlen (list) <= max_attach_length)
data/gvmd-9.0.1/src/manage_sql.c:12154:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                  strlen (list));
data/gvmd-9.0.1/src/manage_sql.c:12157: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).
  if (message && strlen (message))
data/gvmd-9.0.1/src/manage_sql.c:12162: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).
                                list ? strlen (list) : 0,
data/gvmd-9.0.1/src/manage_sql.c:12468:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (format_uuid && strlen (format_uuid))
data/gvmd-9.0.1/src/manage_sql.c:12843:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  name_offset = strlen ("vfire_call_");
data/gvmd-9.0.1/src/manage_sql.c:13082: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).
                  if (alert_subject && strlen (alert_subject))
data/gvmd-9.0.1/src/manage_sql.c:13092:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  if (message == NULL || strlen (message) == 0)
data/gvmd-9.0.1/src/manage_sql.c:13166: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).
                  if (alert_subject && strlen (alert_subject))
data/gvmd-9.0.1/src/manage_sql.c:13180:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  if (message == NULL || strlen (message) == 0)
data/gvmd-9.0.1/src/manage_sql.c:13217: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).
                  if (alert_subject && strlen (alert_subject))
data/gvmd-9.0.1/src/manage_sql.c:13227:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  if (message && strlen (message))
data/gvmd-9.0.1/src/manage_sql.c:13347:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              for (formatting = 0, point = url, end = (url + strlen (url));
data/gvmd-9.0.1/src/manage_sql.c:13455:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                     message, strlen (message),
data/gvmd-9.0.1/src/manage_sql.c:13562:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              ret = send_to_host (host, port, message, strlen (message),
data/gvmd-9.0.1/src/manage_sql.c:14224:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (results_filter && strlen (results_filter))
data/gvmd-9.0.1/src/manage_sql.c:14416:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen (now_string) == 0)
data/gvmd-9.0.1/src/manage_sql.c:14422:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (clean[strlen (clean) - 1] == '\n')
data/gvmd-9.0.1/src/manage_sql.c:14423:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    clean[strlen (clean) - 1] = '\0';
data/gvmd-9.0.1/src/manage_sql.c:14559: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).
              if (filter_id && strlen (filter_id) && strcmp (filter_id, "0"))
data/gvmd-9.0.1/src/manage_sql.c:15007: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).
      quote = sql_nquote (new, strlen (new));
data/gvmd-9.0.1/src/manage_sql.c:15011: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).
    quote = sql_nquote (value, strlen (value));
data/gvmd-9.0.1/src/manage_sql.c:23535:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (levels == NULL || strlen (levels) == 0)
data/gvmd-9.0.1/src/manage_sql.c:26390:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (get->filt_id && strlen (get->filt_id)
data/gvmd-9.0.1/src/manage_sql.c:26906:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (uuid && strlen (uuid))
data/gvmd-9.0.1/src/manage_sql.c:27016:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  one += strlen (one) + 1;
data/gvmd-9.0.1/src/manage_sql.c:27017:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  two += strlen (two) + 1;
data/gvmd-9.0.1/src/manage_sql.c:27021:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  one += strlen (one) + 1;
data/gvmd-9.0.1/src/manage_sql.c:27022:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  two += strlen (two) + 1;
data/gvmd-9.0.1/src/manage_sql.c:27058:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  one += strlen (one) + 1;
data/gvmd-9.0.1/src/manage_sql.c:27059:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  two += strlen (two) + 1;
data/gvmd-9.0.1/src/manage_sql.c:27063:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  one += strlen (one) + 1;
data/gvmd-9.0.1/src/manage_sql.c:27064:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  two += strlen (two) + 1;
data/gvmd-9.0.1/src/manage_sql.c:27254: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).
                        strlen (host), host, strlen (delta_host), delta_host);
data/gvmd-9.0.1/src/manage_sql.c:27254:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        strlen (host), host, strlen (delta_host), delta_host);
data/gvmd-9.0.1/src/manage_sql.c:27359: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).
                        strlen (host), host, strlen (delta_host), delta_host);
data/gvmd-9.0.1/src/manage_sql.c:27359:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        strlen (host), host, strlen (delta_host), delta_host);
data/gvmd-9.0.1/src/manage_sql.c:27658:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      char *threat = port + strlen (port) + 1;
data/gvmd-9.0.1/src/manage_sql.c:27659: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).
      g_debug ("  == %s %s %s", threat + strlen (threat) + 1, port, threat);
data/gvmd-9.0.1/src/manage_sql.c:28277:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      && strlen (report_host_details_iterator_source_desc (details)))
data/gvmd-9.0.1/src/manage_sql.c:28289:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      && strlen (report_host_details_iterator_extra (details)))
data/gvmd-9.0.1/src/manage_sql.c:28786:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (zone && strlen (zone))
data/gvmd-9.0.1/src/manage_sql.c:29804: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 ((get->filt_id && strlen (get->filt_id) 
data/gvmd-9.0.1/src/manage_sql.c:29806: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).
      || (get->filter && strlen (get->filter)))
data/gvmd-9.0.1/src/manage_sql.c:29809:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (get->filt_id && strlen (get->filt_id) 
data/gvmd-9.0.1/src/manage_sql.c:29895:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (zone && strlen (zone))
data/gvmd-9.0.1/src/manage_sql.c:30361: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 (zone && strlen (zone))
data/gvmd-9.0.1/src/manage_sql.c:30693:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  && strlen (host_iterator_asset_uuid (&hosts)))
data/gvmd-9.0.1/src/manage_sql.c:30790: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).
              && strlen (host_iterator_asset_uuid (&hosts)))
data/gvmd-9.0.1/src/manage_sql.c:31586: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).
  output_fd = mkstemps (output_file, strlen (out_file_ext) + 1);
data/gvmd-9.0.1/src/manage_sql.c:33050:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      gchar *quoted_file = sql_nquote (file, strlen (file));
data/gvmd-9.0.1/src/manage_sql.c:33282: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).
  else if (schedule_periods && strlen (schedule_periods))
data/gvmd-9.0.1/src/manage_sql.c:33583: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).
  buff = g_newa (char, strlen (port));
data/gvmd-9.0.1/src/manage_sql.c:34287:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen (name) == 0)
data/gvmd-9.0.1/src/manage_sql.c:34571:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen (hosts) == 0)
data/gvmd-9.0.1/src/manage_sql.c:35718:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  for (formatting = 0, point = url, end = (url + strlen (url));
data/gvmd-9.0.1/src/manage_sql.c:35780: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).
  if (details_url && strlen (details_url))
data/gvmd-9.0.1/src/manage_sql.c:35808:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (details_url && strlen (details_url))
data/gvmd-9.0.1/src/manage_sql.c:35815:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                              strlen (name) > 60
data/gvmd-9.0.1/src/manage_sql.c:35817:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                               : (strlen (name) > 57 ? name + 57 : "   "),
data/gvmd-9.0.1/src/manage_sql.c:35899:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (details_url && strlen (details_url))
data/gvmd-9.0.1/src/manage_sql.c:35909:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                              strlen (desc) > 53
data/gvmd-9.0.1/src/manage_sql.c:35911:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                               : (strlen (desc) > 50 ? desc + 50 : "   "),
data/gvmd-9.0.1/src/manage_sql.c:35991:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (details_url && strlen (details_url))
data/gvmd-9.0.1/src/manage_sql.c:35998:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                              strlen (name) > 60
data/gvmd-9.0.1/src/manage_sql.c:36000:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                               : (strlen (name) > 57 ? name + 57 : "   "),
data/gvmd-9.0.1/src/manage_sql.c:36081:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (details_url && strlen (details_url))
data/gvmd-9.0.1/src/manage_sql.c:36168:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (details_url && strlen (details_url))
data/gvmd-9.0.1/src/manage_sql.c:36255:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (details_url && strlen (details_url))
data/gvmd-9.0.1/src/manage_sql.c:36724:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  assert (name && strlen (name) > 0);
data/gvmd-9.0.1/src/manage_sql.c:38913:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen (installer_basename))
data/gvmd-9.0.1/src/manage_sql.c:39188:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  assert (strlen (name) > 0);
data/gvmd-9.0.1/src/manage_sql.c:39200:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen (installer_64))
data/gvmd-9.0.1/src/manage_sql.c:39205:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen (installer_signature_64))
data/gvmd-9.0.1/src/manage_sql.c:39213:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen (installer_signature))
data/gvmd-9.0.1/src/manage_sql.c:39318:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (sql_bind_text (stmt, 2, installer_64, strlen (installer_64)))
data/gvmd-9.0.1/src/manage_sql.c:39328: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).
                           strlen (installer_signature_64)))
data/gvmd-9.0.1/src/manage_sql.c:39335:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (sql_bind_text (stmt, 4, howto_install, strlen (howto_install)))
data/gvmd-9.0.1/src/manage_sql.c:39342:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (sql_bind_blob (stmt, 5, howto_use, strlen (howto_use)))
data/gvmd-9.0.1/src/manage_sql.c:39834:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (installer_64 && strlen (installer_64))
data/gvmd-9.0.1/src/manage_sql.c:39991: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).
      if ((signature_64 && strlen (signature_64))
data/gvmd-9.0.1/src/manage_sql.c:40000:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          if (signature_64 && strlen (signature_64))
data/gvmd-9.0.1/src/manage_sql.c:40033:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                    strlen (agent_signature), &agent_trust))
data/gvmd-9.0.1/src/manage_sql.c:40045:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  base64 = (strlen (agent_signature)
data/gvmd-9.0.1/src/manage_sql.c:44482:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (address.sun_path, path, sizeof (address.sun_path) - 1);
data/gvmd-9.0.1/src/manage_sql.c:46347: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).
                                file_name + strlen (file_name) + 1);
data/gvmd-9.0.1/src/manage_sql.c:46402:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            strlen (signature), &format_trust))
data/gvmd-9.0.1/src/manage_sql.c:46630:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen (file_name) == 0)
data/gvmd-9.0.1/src/manage_sql.c:46640: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).
      file = file_name + strlen (file_name) + 1;
data/gvmd-9.0.1/src/manage_sql.c:46641:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen (file))
data/gvmd-9.0.1/src/manage_sql.c:47956: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).
          actual = strlen (value);
data/gvmd-9.0.1/src/manage_sql.c:48027:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (value_64 && strlen (value_64))
data/gvmd-9.0.1/src/manage_sql.c:48737: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).
              if (bound && strlen (entity_text (bound)))
data/gvmd-9.0.1/src/manage_sql.c:48756: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).
              if (bound && strlen (entity_text (bound)))
data/gvmd-9.0.1/src/manage_sql.c:49199:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if ((signature && strlen (signature))
data/gvmd-9.0.1/src/manage_sql.c:49281:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                    strlen (format_signature), &format_trust))
data/gvmd-9.0.1/src/manage_sql.c:49289: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).
          else if (signature && strlen (signature))
data/gvmd-9.0.1/src/manage_sql.c:49293:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                    strlen (signature), &format_trust))
data/gvmd-9.0.1/src/manage_sql.c:49474:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  first = (strlen (results_buffer->str) == 0);
data/gvmd-9.0.1/src/manage_sql.c:49528:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (result_nvts_buffer && strlen (result_nvts_buffer->str))
data/gvmd-9.0.1/src/manage_sql.c:49537:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (results_buffer && strlen (results_buffer->str))
data/gvmd-9.0.1/src/manage_sql.c:49679:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          if ((oid == NULL) || (strlen (oid) == 0))
data/gvmd-9.0.1/src/manage_sql.c:54576:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (type && strlen (type))
data/gvmd-9.0.1/src/manage_sql.c:59435:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (value_64 && strlen (value_64))
data/gvmd-9.0.1/src/manage_sql.c:59470:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (value_64 && strlen (value_64))
data/gvmd-9.0.1/src/manage_sql.c:59524:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (value_64 && strlen (value_64))
data/gvmd-9.0.1/src/manage_sql.c:59699:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (value_64 && strlen (value_64))
data/gvmd-9.0.1/src/manage_sql.c:59985:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (value_64 && strlen (value_64))
data/gvmd-9.0.1/src/manage_sql.c:61819:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          || (strlen (g_ptr_array_index (allowed_methods, 0)) == 0)))
data/gvmd-9.0.1/src/manage_sql_configs.c:2170:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  ? sql_quote (preference->type + strlen ("osp_"))
data/gvmd-9.0.1/src/manage_sql_configs.c:2273: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).
  if (proposed_name == NULL || strlen (proposed_name) == 0) return -2;
data/gvmd-9.0.1/src/manage_sql_configs.c:2308: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).
      quoted_comment = sql_nquote (comment, strlen (comment));
data/gvmd-9.0.1/src/manage_sql_configs.c:3720:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen (value_64))
data/gvmd-9.0.1/src/manage_sql_configs.c:3738:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          if (strlen (value) == 0)
data/gvmd-9.0.1/src/manage_sql_configs.c:3767:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  if (strlen (*point) == 0)
data/gvmd-9.0.1/src/manage_sql_secinfo.c:1866:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                              && (strlen (*point) >= 13)
data/gvmd-9.0.1/src/manage_sql_secinfo.c:2155:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                          if (strlen (cve_text))
data/gvmd-9.0.1/src/manage_sql_secinfo.c:2688:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen (product_text))
data/gvmd-9.0.1/src/manage_sql_secinfo.c:3494:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  xml_basename += strlen (GVM_SCAP_DATA_DIR);
data/gvmd-9.0.1/src/manage_sql_secinfo.c:3707:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  if (status_text && strlen (status_text))
data/gvmd-9.0.1/src/manage_sql_secinfo.c:4051: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).
      if ((subdir == NULL) || (strlen (subdir) == 0))
data/gvmd-9.0.1/src/manage_sql_secinfo.c:4229: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).
          suffix += strlen (GVM_SCAP_DATA_DIR);
data/gvmd-9.0.1/src/manage_sql_secinfo.c:4289:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                     strlen (now_string));
data/gvmd-9.0.1/src/manage_sql_secinfo.c:4481:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen (timestamp) < 8)
data/gvmd-9.0.1/src/manage_sql_secinfo.c:4556:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen (timestamp) < 8)
data/gvmd-9.0.1/src/manage_sql_secinfo.c:4868:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen (timestamp) < 8)
data/gvmd-9.0.1/src/manage_sql_tickets.c:1264:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              if ((open_note == NULL) || (strlen (open_note) == 0))
data/gvmd-9.0.1/src/manage_sql_tickets.c:1277:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              if ((fixed_note == NULL) || (strlen (fixed_note) == 0))
data/gvmd-9.0.1/src/manage_sql_tickets.c:1290: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 ((closed_note == NULL) || (strlen (closed_note) == 0))
data/gvmd-9.0.1/src/manage_utils.c:105:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen (buf) >= 3)
data/gvmd-9.0.1/src/sql.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).
  return sql_nquote (string, strlen (string));
data/gvmd-9.0.1/src/sql_pg.c:432: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).
  assert (sql && strlen (sql) && (sql[strlen (sql) - 1] != ';'));
data/gvmd-9.0.1/src/sql_pg.c:432:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  assert (sql && strlen (sql) && (sql[strlen (sql) - 1] != ';'));
data/gvmd-9.0.1/src/sql_pg.c:754:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              value_size == -1 ? strlen (value) : value_size,
data/gvmd-9.0.1/src/utils.c:287:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len = strlen (time_string);

ANALYSIS SUMMARY:

Hits = 540
Lines analyzed = 160913 in approximately 3.79 seconds (42482 lines/second)
Physical Source Lines of Code (SLOC) = 117625
Hits@level = [0] 205 [1] 315 [2] 147 [3]  32 [4]  21 [5]  25
Hits@level+ = [0+] 745 [1+] 540 [2+] 225 [3+]  78 [4+]  46 [5+]  25
Hits/KSLOC@level+ = [0+] 6.33369 [1+] 4.59086 [2+] 1.91286 [3+] 0.663124 [4+] 0.391073 [5+] 0.21254
Dot directories skipped = 3 (--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.