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/sitecopy-0.16.6/src/vfsdriver.c Examining data/sitecopy-0.16.6/src/frontend.h Examining data/sitecopy-0.16.6/src/common.h Examining data/sitecopy-0.16.6/src/protocol.h Examining data/sitecopy-0.16.6/src/sitefiles.c Examining data/sitecopy-0.16.6/src/ftpdriver.c Examining data/sitecopy-0.16.6/src/lsparser.h Examining data/sitecopy-0.16.6/src/nulldriver.c Examining data/sitecopy-0.16.6/src/ftp.h Examining data/sitecopy-0.16.6/src/sitesi.h Examining data/sitecopy-0.16.6/src/davdriver.c Examining data/sitecopy-0.16.6/src/common.c Examining data/sitecopy-0.16.6/src/rcfile.h Examining data/sitecopy-0.16.6/src/lsparser.c Examining data/sitecopy-0.16.6/src/i18n.h Examining data/sitecopy-0.16.6/src/rshdriver.c Examining data/sitecopy-0.16.6/src/console_fe.c Examining data/sitecopy-0.16.6/src/sites.c Examining data/sitecopy-0.16.6/src/sites.h Examining data/sitecopy-0.16.6/src/rcfile.c Examining data/sitecopy-0.16.6/src/sftpdriver.c Examining data/sitecopy-0.16.6/src/sitestore.c Examining data/sitecopy-0.16.6/src/ftp.c Examining data/sitecopy-0.16.6/lib/fnmatch.h Examining data/sitecopy-0.16.6/lib/neon/ne_auth.h Examining data/sitecopy-0.16.6/lib/neon/ne_stubssl.c Examining data/sitecopy-0.16.6/lib/neon/ne_207.c Examining data/sitecopy-0.16.6/lib/neon/ne_i18n.c Examining data/sitecopy-0.16.6/lib/neon/ne_compress.h Examining data/sitecopy-0.16.6/lib/neon/ne_socket.c Examining data/sitecopy-0.16.6/lib/neon/ne_socket.h Examining data/sitecopy-0.16.6/lib/neon/ne_internal.h Examining data/sitecopy-0.16.6/lib/neon/ne_alloc.c Examining data/sitecopy-0.16.6/lib/neon/ne_md5.c Examining data/sitecopy-0.16.6/lib/neon/ne_alloc.h Examining data/sitecopy-0.16.6/lib/neon/ne_xml.h Examining data/sitecopy-0.16.6/lib/neon/ne_acl.h Examining data/sitecopy-0.16.6/lib/neon/ne_locks.h Examining data/sitecopy-0.16.6/lib/neon/ne_ssl.h Examining data/sitecopy-0.16.6/lib/neon/ne_gnutls.c Examining data/sitecopy-0.16.6/lib/neon/ne_acl.c Examining data/sitecopy-0.16.6/lib/neon/ne_auth.c Examining data/sitecopy-0.16.6/lib/neon/ne_redirect.h Examining data/sitecopy-0.16.6/lib/neon/ne_request.h Examining data/sitecopy-0.16.6/lib/neon/ne_string.c Examining data/sitecopy-0.16.6/lib/neon/ne_uri.h Examining data/sitecopy-0.16.6/lib/neon/ne_props.h Examining data/sitecopy-0.16.6/lib/neon/ne_openssl.c Examining data/sitecopy-0.16.6/lib/neon/ne_xmlreq.h Examining data/sitecopy-0.16.6/lib/neon/ne_private.h Examining data/sitecopy-0.16.6/lib/neon/ne_dates.h Examining data/sitecopy-0.16.6/lib/neon/ne_pkcs11.h Examining data/sitecopy-0.16.6/lib/neon/ne_md5.h Examining data/sitecopy-0.16.6/lib/neon/ne_utils.h Examining data/sitecopy-0.16.6/lib/neon/ne_uri.c Examining data/sitecopy-0.16.6/lib/neon/ne_sspi.c Examining data/sitecopy-0.16.6/lib/neon/ne_request.c Examining data/sitecopy-0.16.6/lib/neon/ne_props.c Examining data/sitecopy-0.16.6/lib/neon/ne_string.h Examining data/sitecopy-0.16.6/lib/neon/ne_redirect.c Examining data/sitecopy-0.16.6/lib/neon/ne_locks.c Examining data/sitecopy-0.16.6/lib/neon/memleak.h Examining data/sitecopy-0.16.6/lib/neon/ne_basic.c Examining data/sitecopy-0.16.6/lib/neon/ne_basic.h Examining data/sitecopy-0.16.6/lib/neon/ne_session.h Examining data/sitecopy-0.16.6/lib/neon/ne_privssl.h Examining data/sitecopy-0.16.6/lib/neon/ne_i18n.h Examining data/sitecopy-0.16.6/lib/neon/ne_pkcs11.c Examining data/sitecopy-0.16.6/lib/neon/ne_utils.c Examining data/sitecopy-0.16.6/lib/neon/ne_defs.h Examining data/sitecopy-0.16.6/lib/neon/ne_xml.c Examining data/sitecopy-0.16.6/lib/neon/ne_xmlreq.c Examining data/sitecopy-0.16.6/lib/neon/ne_sspi.h Examining data/sitecopy-0.16.6/lib/neon/ne_compress.c Examining data/sitecopy-0.16.6/lib/neon/ne_session.c Examining data/sitecopy-0.16.6/lib/neon/ne_dates.c Examining data/sitecopy-0.16.6/lib/neon/ne_207.h Examining data/sitecopy-0.16.6/lib/netrc.c Examining data/sitecopy-0.16.6/lib/basename.h Examining data/sitecopy-0.16.6/lib/getopt.h Examining data/sitecopy-0.16.6/lib/strcasecmp.c Examining data/sitecopy-0.16.6/lib/getopt.c Examining data/sitecopy-0.16.6/lib/basename.c Examining data/sitecopy-0.16.6/lib/netrc.h Examining data/sitecopy-0.16.6/lib/dirname.h Examining data/sitecopy-0.16.6/lib/fnmatch.c Examining data/sitecopy-0.16.6/lib/getopt1.c Examining data/sitecopy-0.16.6/lib/expat/xmltok/xmltok.c Examining data/sitecopy-0.16.6/lib/expat/xmltok/xmltok_impl.c Examining data/sitecopy-0.16.6/lib/expat/xmltok/iasciitab.h Examining data/sitecopy-0.16.6/lib/expat/xmltok/asciitab.h Examining data/sitecopy-0.16.6/lib/expat/xmltok/xmltok.h Examining data/sitecopy-0.16.6/lib/expat/xmltok/nametab.h Examining data/sitecopy-0.16.6/lib/expat/xmltok/xmltok_impl.h Examining data/sitecopy-0.16.6/lib/expat/xmltok/xmlrole.c Examining data/sitecopy-0.16.6/lib/expat/xmltok/xmldef.h Examining data/sitecopy-0.16.6/lib/expat/xmltok/latin1tab.h Examining data/sitecopy-0.16.6/lib/expat/xmltok/xmlrole.h Examining data/sitecopy-0.16.6/lib/expat/xmltok/utf8tab.h Examining data/sitecopy-0.16.6/lib/expat/xmltok/xmltok_ns.c Examining data/sitecopy-0.16.6/lib/expat/gennmtab/gennmtab.c Examining data/sitecopy-0.16.6/lib/expat/xmlparse/xmlparse.c Examining data/sitecopy-0.16.6/lib/expat/xmlparse/hashtable.h Examining data/sitecopy-0.16.6/lib/expat/xmlparse/xmlparse.h Examining data/sitecopy-0.16.6/lib/expat/xmlparse/hashtable.c Examining data/sitecopy-0.16.6/lib/rpmatch.c Examining data/sitecopy-0.16.6/lib/yesno.c Examining data/sitecopy-0.16.6/lib/dirname.c Examining data/sitecopy-0.16.6/lib/linelen.c Examining data/sitecopy-0.16.6/gnome/operations.c Examining data/sitecopy-0.16.6/gnome/init.h Examining data/sitecopy-0.16.6/gnome/new_site.h Examining data/sitecopy-0.16.6/gnome/operations.h Examining data/sitecopy-0.16.6/gnome/init.c Examining data/sitecopy-0.16.6/gnome/file_widgets.c Examining data/sitecopy-0.16.6/gnome/site_widgets.h Examining data/sitecopy-0.16.6/gnome/new_site.c Examining data/sitecopy-0.16.6/gnome/misc.h Examining data/sitecopy-0.16.6/gnome/minilist.h Examining data/sitecopy-0.16.6/gnome/changes.h Examining data/sitecopy-0.16.6/gnome/main.c Examining data/sitecopy-0.16.6/gnome/site_widgets.c Examining data/sitecopy-0.16.6/gnome/gcommon.h Examining data/sitecopy-0.16.6/gnome/changes.c Examining data/sitecopy-0.16.6/gnome/resynch.h Examining data/sitecopy-0.16.6/gnome/file_widgets.h Examining data/sitecopy-0.16.6/gnome/tree.c Examining data/sitecopy-0.16.6/gnome/misc.c Examining data/sitecopy-0.16.6/gnome/gcommon.c Examining data/sitecopy-0.16.6/gnome/tree.h Examining data/sitecopy-0.16.6/gnome/resynch.c Examining data/sitecopy-0.16.6/gnome/minilist.c Examining data/sitecopy-0.16.6/intl/dcgettext.c Examining data/sitecopy-0.16.6/intl/intl-compat.c Examining data/sitecopy-0.16.6/intl/localealias.c Examining data/sitecopy-0.16.6/intl/os2compat.h Examining data/sitecopy-0.16.6/intl/lock.c Examining data/sitecopy-0.16.6/intl/textdomain.c Examining data/sitecopy-0.16.6/intl/plural-exp.h Examining data/sitecopy-0.16.6/intl/finddomain.c Examining data/sitecopy-0.16.6/intl/tsearch.h Examining data/sitecopy-0.16.6/intl/printf-args.h Examining data/sitecopy-0.16.6/intl/lock.h Examining data/sitecopy-0.16.6/intl/loadmsgcat.c Examining data/sitecopy-0.16.6/intl/localcharset.h Examining data/sitecopy-0.16.6/intl/explodename.c Examining data/sitecopy-0.16.6/intl/l10nflist.c Examining data/sitecopy-0.16.6/intl/tsearch.c Examining data/sitecopy-0.16.6/intl/printf-parse.h Examining data/sitecopy-0.16.6/intl/vasnprintf.c Examining data/sitecopy-0.16.6/intl/relocatable.c Examining data/sitecopy-0.16.6/intl/intl-exports.c Examining data/sitecopy-0.16.6/intl/dgettext.c Examining data/sitecopy-0.16.6/intl/version.c Examining data/sitecopy-0.16.6/intl/log.c Examining data/sitecopy-0.16.6/intl/localename.c Examining data/sitecopy-0.16.6/intl/export.h Examining data/sitecopy-0.16.6/intl/dcngettext.c Examining data/sitecopy-0.16.6/intl/loadinfo.h Examining data/sitecopy-0.16.6/intl/bindtextdom.c Examining data/sitecopy-0.16.6/intl/hash-string.h Examining data/sitecopy-0.16.6/intl/osdep.c Examining data/sitecopy-0.16.6/intl/os2compat.c Examining data/sitecopy-0.16.6/intl/eval-plural.h Examining data/sitecopy-0.16.6/intl/printf.c Examining data/sitecopy-0.16.6/intl/gettext.c Examining data/sitecopy-0.16.6/intl/wprintf-parse.h Examining data/sitecopy-0.16.6/intl/printf-parse.c Examining data/sitecopy-0.16.6/intl/relocatable.h Examining data/sitecopy-0.16.6/intl/ngettext.c Examining data/sitecopy-0.16.6/intl/plural-exp.c Examining data/sitecopy-0.16.6/intl/gmo.h Examining data/sitecopy-0.16.6/intl/dcigettext.c Examining data/sitecopy-0.16.6/intl/vasnprintf.h Examining data/sitecopy-0.16.6/intl/plural.c Examining data/sitecopy-0.16.6/intl/dngettext.c Examining data/sitecopy-0.16.6/intl/xsize.h Examining data/sitecopy-0.16.6/intl/langprefs.c Examining data/sitecopy-0.16.6/intl/gettextP.h Examining data/sitecopy-0.16.6/intl/printf-args.c Examining data/sitecopy-0.16.6/intl/hash-string.c Examining data/sitecopy-0.16.6/intl/localcharset.c Examining data/sitecopy-0.16.6/intl/vasnwprintf.h FINAL RESULTS: data/sitecopy-0.16.6/gnome/init.c:327:2: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. chmod(rcfilename, 00600); data/sitecopy-0.16.6/gnome/init.c:338:7: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. chmod(infodirname, 00700); data/sitecopy-0.16.6/src/sites.c:132: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(full_local, current->stored.mode) < 0) { data/sitecopy-0.16.6/src/sites.c:165: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(full_local, current->stored.mode) < 0) { data/sitecopy-0.16.6/src/sites.c:926:7: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. if (readlink(full, tmp, BUFSIZ) == -1) { data/sitecopy-0.16.6/gnome/file_widgets.c:36:5: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system(base_command); data/sitecopy-0.16.6/gnome/misc.c:57:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(backup_name, selected_site->infofile); data/sitecopy-0.16.6/gnome/misc.c:82:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(rcbackup, rcfile); data/sitecopy-0.16.6/gnome/misc.c:107:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(backup_name, rcfile); data/sitecopy-0.16.6/gnome/misc.c:118:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(question, "The last backup of your rcfile was modified on %s.\nAre you sure you wish to restore the site details from that date?", ctime(&(backup_file->st_ctime))); data/sitecopy-0.16.6/gnome/misc.c:132:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(rcfile_backup, rcfile); data/sitecopy-0.16.6/gnome/misc.c:186:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(backup_name, selected_site->infofile); data/sitecopy-0.16.6/gnome/misc.c:197:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(question, "The last backup of your files' state was modified on %s.\nAre you sure you wish to restore the file states from that date?", ctime(&(backup_file->st_ctime))); data/sitecopy-0.16.6/gnome/misc.c:211:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(backup_name, selected_site->infofile); data/sitecopy-0.16.6/gnome/misc.c:468:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(summary, "The site '%s' requires an update.", tmp_site->name); data/sitecopy-0.16.6/gnome/misc.c:527:5: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system(lee); data/sitecopy-0.16.6/gnome/misc.c:528:5: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system("gnome-moz-remote --newwin /tmp/xsitecopy_report.html"); data/sitecopy-0.16.6/gnome/misc.c:580:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(errstr, _("Server not specified in site `%s'.\n"), data/sitecopy-0.16.6/gnome/misc.c:584:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(errstr, _("Remote directory not specified in site `%s'.\n"), data/sitecopy-0.16.6/gnome/misc.c:588:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(errstr, _("Local directory not specified in site `%s'.\n"), data/sitecopy-0.16.6/gnome/misc.c:592:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(errstr, _("Could not read directory for `%s':\n\t%s\n"), data/sitecopy-0.16.6/gnome/misc.c:596:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(errstr, _("Invalid port used in site `%s'.\n"), data/sitecopy-0.16.6/gnome/misc.c:600:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(errstr, _("Protocol '%s' cannot maintain symbolic links (site `%s').\n"), data/sitecopy-0.16.6/gnome/misc.c:604:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(errstr, _("Cannot use a relative remote directory protocol '%s' (site `%s').\n"), current->driver->protocol_name, current->name); data/sitecopy-0.16.6/gnome/misc.c:607:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(errstr, _("%s's protocol does not currently support maintaining permissions."), data/sitecopy-0.16.6/intl/dcigettext.c:797:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (new_localename, localename); data/sitecopy-0.16.6/intl/langprefs.c:107:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (p, buf); data/sitecopy-0.16.6/intl/localcharset.c:197:8: [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 (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1); data/sitecopy-0.16.6/intl/localcharset.c:198:8: [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 (res_ptr + res_size - (l2 + 1), buf2); data/sitecopy-0.16.6/intl/localename.c:918:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (name, legacy_table[i1].unixy); data/sitecopy-0.16.6/intl/localename.c:942:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (name, langtag_table[i1].unixy); data/sitecopy-0.16.6/intl/localename.c:962:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (name + 3, script_table[i1].unixy); data/sitecopy-0.16.6/intl/log.c:86:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (last_logfilename, logfilename); data/sitecopy-0.16.6/intl/os2compat.c:97:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (libintl_nl_default_dirname, _nlos2_localedir); data/sitecopy-0.16.6/intl/plural.c:752:21: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define YYFPRINTF fprintf data/sitecopy-0.16.6/intl/printf.c:98:12: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. return vfprintf (stream, format, args); data/sitecopy-0.16.6/intl/printf.c:158:12: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. return vsprintf (resultbuf, format, args); data/sitecopy-0.16.6/intl/printf.c:198:28: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define system_vsnprintf vsnprintf data/sitecopy-0.16.6/intl/printf.c:309:28: [4] (buffer) vswprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # define system_vswprintf vswprintf data/sitecopy-0.16.6/intl/printf.c:317:12: [4] (format) vfwprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. return vfwprintf (stream, format, args); data/sitecopy-0.16.6/intl/relocatable.c:459:8: [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 (result + curr_prefix_len, pathname_tail); data/sitecopy-0.16.6/intl/vasnprintf.c:182:20: [4] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # define SNPRINTF swprintf data/sitecopy-0.16.6/intl/vasnprintf.c:196:20: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define SNPRINTF _snprintf data/sitecopy-0.16.6/intl/vasnprintf.c:199:20: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define SNPRINTF snprintf data/sitecopy-0.16.6/intl/vasnprintf.c:201:10: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # undef snprintf data/sitecopy-0.16.6/intl/vasnprintf.c:205:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #undef sprintf data/sitecopy-0.16.6/intl/vasnprintf.c:3255:11: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf ((char *) p, decimal_format, exponent); data/sitecopy-0.16.6/intl/vasnprintf.c:3263:11: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (expbuf, decimal_format, exponent); data/sitecopy-0.16.6/intl/vasnprintf.c:3425:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf ((char *) p, decimal_format, exponent); data/sitecopy-0.16.6/intl/vasnprintf.c:3433:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (expbuf, decimal_format, exponent); data/sitecopy-0.16.6/intl/vasnprintf.c:4095:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, arg); \ data/sitecopy-0.16.6/intl/vasnprintf.c:4098:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, prefixes[0], arg); \ data/sitecopy-0.16.6/intl/vasnprintf.c:4101:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, prefixes[0], prefixes[1],\ data/sitecopy-0.16.6/intl/vasnprintf.h:37:22: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define __printf__ printf data/sitecopy-0.16.6/lib/neon/ne_alloc.c:83:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). return strcpy(ret, s); data/sitecopy-0.16.6/lib/neon/ne_alloc.c:186:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). return strcpy(tracking_malloc(strlen(s) + 1, file, line), s); data/sitecopy-0.16.6/lib/neon/ne_auth.c:247:26: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. ne_attribute((format(printf, 2, 3))); data/sitecopy-0.16.6/lib/neon/ne_dates.c:131:14: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. if ((n = sscanf(date, ISO8601_FORMAT_P, data/sitecopy-0.16.6/lib/neon/ne_dates.c:139:19: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. else if ((n = sscanf(date, ISO8601_FORMAT_M, data/sitecopy-0.16.6/lib/neon/ne_dates.c:147:19: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. else if ((n = sscanf(date, ISO8601_FORMAT_Z, data/sitecopy-0.16.6/lib/neon/ne_dates.c:175:9: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. n = sscanf(date, RFC1123_FORMAT, data/sitecopy-0.16.6/lib/neon/ne_dates.c:200:9: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. n = sscanf(date, RFC1036_FORMAT, data/sitecopy-0.16.6/lib/neon/ne_dates.c:235:9: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. n = sscanf(date, ASCTIME_FORMAT, data/sitecopy-0.16.6/lib/neon/ne_request.h:155:26: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. ne_attribute((format(printf, 3, 4))); data/sitecopy-0.16.6/lib/neon/ne_session.c:116:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(host->hostport, host->hostname); data/sitecopy-0.16.6/lib/neon/ne_session.c:254:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(stpcpy(stpcpy(sess->user_agent, UAHDR), token), AGENT); data/sitecopy-0.16.6/lib/neon/ne_session.c:256:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(strcat(strcpy(sess->user_agent, UAHDR), token), AGENT); data/sitecopy-0.16.6/lib/neon/ne_session.c:256:12: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(strcat(strcpy(sess->user_agent, UAHDR), token), AGENT); data/sitecopy-0.16.6/lib/neon/ne_session.c:256:19: [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). strcat(strcat(strcpy(sess->user_agent, UAHDR), token), AGENT); data/sitecopy-0.16.6/lib/neon/ne_session.h:280:27: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. ne_attribute((format (printf, 2, 3))); data/sitecopy-0.16.6/lib/neon/ne_string.c:426:5: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(str, size, fmt, ap); data/sitecopy-0.16.6/lib/neon/ne_string.c:439:5: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(str, size, fmt, ap); data/sitecopy-0.16.6/lib/neon/ne_string.h:99:26: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. ne_attribute((format(printf, 3, 4))); data/sitecopy-0.16.6/lib/neon/ne_string.h:143:26: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. ne_attribute((format(printf, 3, 4))); data/sitecopy-0.16.6/lib/neon/ne_string.h:147:26: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. ne_attribute((format(printf, 3, 0))); data/sitecopy-0.16.6/lib/neon/ne_utils.c:76:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(ne_debug_stream, template, params); data/sitecopy-0.16.6/lib/neon/ne_utils.h:94:63: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. void ne_debug(int ch, const char *, ...) ne_attribute((format(printf, 2, 3))); data/sitecopy-0.16.6/src/console_fe.c:474:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(copypath, optarg); data/sitecopy-0.16.6/src/console_fe.c:630:11: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. tmp = getpass(_("Password: ")); data/sitecopy-0.16.6/src/console_fe.c:654:11: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. tmp = getpass(_("Password: ")); data/sitecopy-0.16.6/src/console_fe.c:854:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(("] done. (%.0f%% finished)\n"), prog); data/sitecopy-0.16.6/src/console_fe.c:1390:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PACKAGE_NAME " " PACKAGE_VERSION ":"); data/sitecopy-0.16.6/src/davdriver.c:123:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(username, host->username); data/sitecopy-0.16.6/src/davdriver.c:124:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(password, host->password); data/sitecopy-0.16.6/src/davdriver.c:253:13: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(site->certfile, R_OK) == 0) { data/sitecopy-0.16.6/src/ftp.c:133:27: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. ne_attribute((format (printf, 2, 3))); data/sitecopy-0.16.6/src/ftp.c:565:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(sess->username, server->username); data/sitecopy-0.16.6/src/ftp.c:568:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(sess->password, server->password); data/sitecopy-0.16.6/src/ftp.c:861:6: [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(sess->cwd, dir); data/sitecopy-0.16.6/src/rshdriver.c:60:27: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. ne_attribute((format (printf, 3, 4))); data/sitecopy-0.16.6/src/rshdriver.c:87:20: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. sess->fp = popen(cmd, rcmd == RSH_PIPE_READ ? "r" : "w"); data/sitecopy-0.16.6/src/rshdriver.c:90:16: [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. return system(cmd) == 0 ? SITE_OK : SITE_FAILED; data/sitecopy-0.16.6/src/sftpdriver.c:65:27: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. ne_attribute((format (printf, 2, 3))); data/sitecopy-0.16.6/src/sftpdriver.c:96:5: [4] (shell) execlp: 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. execlp(sess->sftp_cmd, sess->sftp_cmd, sess->buf, NULL); data/sitecopy-0.16.6/src/sftpdriver.c:192:27: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. ne_attribute((format (printf, 2, 3))); data/sitecopy-0.16.6/src/sftpdriver.c:215:16: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. sess->fp = popen(buf, "r"); data/sitecopy-0.16.6/src/sitefiles.c:428:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ret, site->remote_root); data/sitecopy-0.16.6/src/sitefiles.c:438:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(ret, state->filename); data/sitecopy-0.16.6/src/sites.c:417:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ret, filename); data/sitecopy-0.16.6/gnome/init.c:313:5: [3] (buffer) g_get_home_dir: This function is synonymous with 'getenv("HOME")';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_get_home_dir()); data/sitecopy-0.16.6/gnome/init.c:315:6: [3] (buffer) g_get_home_dir: This function is synonymous with 'getenv("HOME")';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_get_home_dir()); data/sitecopy-0.16.6/gnome/new_site.c:69:33: [3] (buffer) g_get_home_dir: This function is synonymous with 'getenv("HOME")';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. new_site->local_root_user = g_get_home_dir(); data/sitecopy-0.16.6/intl/dcigettext.c:149:7: [3] (buffer) getwd: This does not protect against buffer overflows by itself, so use with caution (CWE-120, CWE-20). Use getcwd instead. char *getwd (); data/sitecopy-0.16.6/intl/dcigettext.c:150:28: [3] (buffer) getwd: This does not protect against buffer overflows by itself, so use with caution (CWE-120, CWE-20). Use getcwd instead. # define getcwd(buf, max) getwd (buf) data/sitecopy-0.16.6/intl/dcigettext.c:858:33: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *logfilename = getenv ("GETTEXT_LOG_UNTRANSLATED"); data/sitecopy-0.16.6/intl/dcigettext.c:1557:14: [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. language = getenv ("LANGUAGE"); data/sitecopy-0.16.6/intl/dcigettext.c:1597:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *value = getenv ("OUTPUT_CHARSET"); data/sitecopy-0.16.6/intl/localcharset.c:122:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. dir = getenv ("CHARSETALIASDIR"); data/sitecopy-0.16.6/intl/localcharset.c:309: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. locale = getenv ("LC_ALL"); data/sitecopy-0.16.6/intl/localcharset.c:312:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LC_CTYPE"); data/sitecopy-0.16.6/intl/localcharset.c:314:15: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LANG"); data/sitecopy-0.16.6/intl/localcharset.c:360: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. locale = getenv ("LC_ALL"); data/sitecopy-0.16.6/intl/localcharset.c:363:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LC_CTYPE"); data/sitecopy-0.16.6/intl/localcharset.c:365:15: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LANG"); data/sitecopy-0.16.6/intl/localcharset.c:393: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. locale = getenv ("LC_ALL"); data/sitecopy-0.16.6/intl/localcharset.c:396: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. locale = getenv ("LC_CTYPE"); data/sitecopy-0.16.6/intl/localcharset.c:398:11: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LANG"); data/sitecopy-0.16.6/intl/localename.c:1005: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. retval = getenv ("LC_ALL"); data/sitecopy-0.16.6/intl/localename.c:1009: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. retval = getenv (categoryname); data/sitecopy-0.16.6/intl/localename.c:1013: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. retval = getenv ("LANG"); data/sitecopy-0.16.6/intl/lock.c:525:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&lock->lock); data/sitecopy-0.16.6/intl/lock.c:543:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/sitecopy-0.16.6/intl/lock.c:654:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&lock->lock); data/sitecopy-0.16.6/intl/lock.c:675:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/sitecopy-0.16.6/intl/lock.c:705:8: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/sitecopy-0.16.6/intl/lock.c:728:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/sitecopy-0.16.6/intl/lock.c:757:8: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/sitecopy-0.16.6/intl/lock.c:771:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/sitecopy-0.16.6/intl/lock.c:828:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&lock->lock); data/sitecopy-0.16.6/intl/lock.c:850:2: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/sitecopy-0.16.6/intl/lock.c:891:4: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&once_control->lock); data/sitecopy-0.16.6/intl/lock.c:892:4: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&once_control->lock); data/sitecopy-0.16.6/intl/lock.c:911:8: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&once_control->lock); data/sitecopy-0.16.6/intl/os2compat.c:51: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. char *root = getenv ("UNIXROOT"); data/sitecopy-0.16.6/intl/os2compat.c:52:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *gnulocaledir = getenv ("GNULOCALEDIR"); data/sitecopy-0.16.6/intl/os2compat.h:43:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. #define getenv _nl_getenv data/sitecopy-0.16.6/lib/getopt.c:197:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. #ifndef getenv data/sitecopy-0.16.6/lib/getopt.c:198:14: [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. extern char *getenv (); data/sitecopy-0.16.6/lib/getopt.c:390:21: [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. posixly_correct = getenv ("POSIXLY_CORRECT"); data/sitecopy-0.16.6/lib/getopt.c:953:1: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. getopt (argc, argv, optstring) data/sitecopy-0.16.6/lib/getopt.c:983:11: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt (argc, argv, "abc:d:0123456789"); data/sitecopy-0.16.6/lib/getopt.h:106:12: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. extern int getopt (int argc, char *const *argv, const char *shortopts); data/sitecopy-0.16.6/lib/getopt.h:108:12: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. extern int getopt (); data/sitecopy-0.16.6/lib/getopt.h:110:12: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. extern int getopt_long (int argc, char *const *argv, const char *shortopts, data/sitecopy-0.16.6/lib/getopt.h:122:12: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. extern int getopt (); data/sitecopy-0.16.6/lib/getopt.h:123:12: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. extern int getopt_long (); data/sitecopy-0.16.6/lib/getopt1.c:53:1: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. getopt_long (argc, argv, options, long_options, opt_index) data/sitecopy-0.16.6/lib/getopt1.c:109:11: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long (argc, argv, "abc:d:0123456789", data/sitecopy-0.16.6/lib/neon/ne_sspi.c:136:15: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. hSecDll = LoadLibrary("security.dll"); data/sitecopy-0.16.6/src/console_fe.c:432:20: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((optc = getopt_long(argc, argv, data/sitecopy-0.16.6/src/rcfile.c:682: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. home = getenv("HOME"); data/sitecopy-0.16.6/gnome/init.c:325:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). rc = fopen(rcfilename, "a"); data/sitecopy-0.16.6/gnome/misc.c:58:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(backup_name, ".bak"); data/sitecopy-0.16.6/gnome/misc.c:83:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(rcbackup, ".bak"); data/sitecopy-0.16.6/gnome/misc.c:108:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(backup_name, ".bak"); data/sitecopy-0.16.6/gnome/misc.c:133:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(rcfile_backup, ".bak"); data/sitecopy-0.16.6/gnome/misc.c:159:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((input = fopen(input_name, "r")) == NULL) { data/sitecopy-0.16.6/gnome/misc.c:161:26: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). } else if ((output = fopen(output_name, "w")) == NULL) { data/sitecopy-0.16.6/gnome/misc.c:187:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(backup_name, ".bak"); data/sitecopy-0.16.6/gnome/misc.c:189:45: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. NE_DEBUG(DEBUG_GNOME, "backup is %s\n", strcat(selected_site->infofile, ".bak")); data/sitecopy-0.16.6/gnome/misc.c:212:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(backup_name, ".bak"); data/sitecopy-0.16.6/gnome/misc.c:611:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(errstr, _("Could not find 'relative' local directory")); data/sitecopy-0.16.6/gnome/new_site.c:87:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( this_site, site_to_add, sizeof( struct site ) ); data/sitecopy-0.16.6/intl/bindtextdom.c:138:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result, dirname, len); data/sitecopy-0.16.6/intl/bindtextdom.c:176:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result, codeset, len); data/sitecopy-0.16.6/intl/bindtextdom.c:211:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (new_binding->domainname, domainname, len); data/sitecopy-0.16.6/intl/bindtextdom.c:236:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result, dirname, len); data/sitecopy-0.16.6/intl/bindtextdom.c:265:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result, codeset, len); data/sitecopy-0.16.6/intl/dcigettext.c:272: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 msgid[ZERO]; data/sitecopy-0.16.6/intl/dcigettext.c:421:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char data[ZERO]; data/sitecopy-0.16.6/intl/dcigettext.c:548: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 (search->msgid, msgid1, msgid_len); data/sitecopy-0.16.6/intl/dcigettext.c:794:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (new_domainname, domainname, domainname_len + 1); data/sitecopy-0.16.6/intl/dcigettext.c:1122:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (charset, charsetstr, len); data/sitecopy-0.16.6/intl/dcigettext.c:1160:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (tmp, outcharset, len); data/sitecopy-0.16.6/intl/dcigettext.c:1161:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (tmp + len, "//TRANSLIT", 10 + 1); data/sitecopy-0.16.6/intl/dcigettext.c:1605:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (value_copy, value, len); data/sitecopy-0.16.6/intl/dcigettext.c:1647:29: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. return (void *) ((char *) memcpy (dest, src, n) + n); data/sitecopy-0.16.6/intl/finddomain.c:139:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (locale, alias_value, len); data/sitecopy-0.16.6/intl/gettextP.h:217: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 domainname[ZERO]; data/sitecopy-0.16.6/intl/l10nflist.c:215:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (cp, dirlist, dirlist_len); data/sitecopy-0.16.6/intl/langprefs.c:62:6: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/sitecopy-0.16.6/intl/loadmsgcat.c:468:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # define open(name, flags) open_not_cancel_2 (name, flags) data/sitecopy-0.16.6/intl/loadmsgcat.c:828: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 (domain_file->filename, O_RDONLY | O_BINARY); data/sitecopy-0.16.6/intl/loadmsgcat.c:1180:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (mem, static_segments, segsize); data/sitecopy-0.16.6/intl/loadmsgcat.c:1189:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (mem, sysdep_segment_values[sysdepref], n); data/sitecopy-0.16.6/intl/localcharset.c:134:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (file_name, dir, dir_len); data/sitecopy-0.16.6/intl/localcharset.c:137:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (file_name + dir_len + add_slash, base, base_len + 1); data/sitecopy-0.16.6/intl/localcharset.c:141:38: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (file_name == NULL || (fp = fopen (file_name, "r")) == NULL) data/sitecopy-0.16.6/intl/localcharset.c:153:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf1[50+1]; data/sitecopy-0.16.6/intl/localcharset.c:154:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf2[50+1]; data/sitecopy-0.16.6/intl/localcharset.c:307: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 buf[2 + 10 + 1]; data/sitecopy-0.16.6/intl/localcharset.c:333:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (buf, dot, modifier - dot); data/sitecopy-0.16.6/intl/localcharset.c:341:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (buf, "CP%u", GetACP ()); data/sitecopy-0.16.6/intl/localcharset.c:378: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 buf[2 + 10 + 1]; data/sitecopy-0.16.6/intl/localcharset.c:381:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (buf, "CP%u", GetACP ()); data/sitecopy-0.16.6/intl/localcharset.c:387: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 buf[2 + 10 + 1]; data/sitecopy-0.16.6/intl/localcharset.c:416:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (buf, dot, modifier - dot); data/sitecopy-0.16.6/intl/localcharset.c:432:4: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (buf, "CP%u", cp[0]); data/sitecopy-0.16.6/intl/localealias.c:230:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (full_fname, fname, fname_len); data/sitecopy-0.16.6/intl/localealias.c:231: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 (&full_fname[fname_len], aliasfile, sizeof aliasfile); data/sitecopy-0.16.6/intl/localealias.c:237:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen (relocate (full_fname), "rc"); data/sitecopy-0.16.6/intl/localealias.c:239:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen (relocate (full_fname), "r"); data/sitecopy-0.16.6/intl/localealias.c:260: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[400]; data/sitecopy-0.16.6/intl/localealias.c:353:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (const char *) memcpy (&string_space[string_space_act], data/sitecopy-0.16.6/intl/localealias.c:358:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (const char *) memcpy (&string_space[string_space_act], data/sitecopy-0.16.6/intl/localename.c:723:26: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef struct { const char legacy[21+1]; const char unixy[5+1]; } data/sitecopy-0.16.6/intl/localename.c:723:51: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef struct { const char legacy[21+1]; const char unixy[5+1]; } data/sitecopy-0.16.6/intl/localename.c:861:26: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef struct { const char langtag[7+1]; const char unixy[12+1]; } data/sitecopy-0.16.6/intl/localename.c:861:51: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef struct { const char langtag[7+1]; const char unixy[12+1]; } data/sitecopy-0.16.6/intl/localename.c:891:26: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef struct { const char script[4+1]; const char unixy[9+1]; } data/sitecopy-0.16.6/intl/localename.c:891:50: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef struct { const char script[4+1]; const char unixy[9+1]; } data/sitecopy-0.16.6/intl/localename.c:1054:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char namebuf[256]; data/sitecopy-0.16.6/intl/log.c:87:22: [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). last_logfile = fopen (logfilename, "a"); data/sitecopy-0.16.6/intl/os2compat.c:42:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char libintl_nl_default_dirname[MAXPATHLEN+1]; data/sitecopy-0.16.6/intl/os2compat.c:61:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (_nlos2_libdir, root, sl); data/sitecopy-0.16.6/intl/os2compat.c:62:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (_nlos2_libdir + sl, LIBDIR, strlen (LIBDIR) + 1); data/sitecopy-0.16.6/intl/os2compat.c:75:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (_nlos2_localealiaspath, root, sl); data/sitecopy-0.16.6/intl/os2compat.c:76:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (_nlos2_localealiaspath + sl, LOCALE_ALIAS_PATH, strlen (LOCALE_ALIAS_PATH) + 1); data/sitecopy-0.16.6/intl/os2compat.c:89:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (_nlos2_localedir, root, sl); data/sitecopy-0.16.6/intl/os2compat.c:90:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (_nlos2_localedir + sl, LOCALEDIR, strlen (LOCALEDIR) + 1); data/sitecopy-0.16.6/intl/plural.c:1052: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 const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; data/sitecopy-0.16.6/intl/plural.c:1069: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 yyformat[sizeof yyunexpected data/sitecopy-0.16.6/intl/plural.c:1237: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 yymsgbuf[128]; data/sitecopy-0.16.6/intl/printf.c:217:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (resultbuf, result, pruned_length); data/sitecopy-0.16.6/intl/printf.c:391:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (resultbuf, result, pruned_length * sizeof (wchar_t)); data/sitecopy-0.16.6/intl/relocatable.c:122:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (memory, orig_prefix_arg, orig_prefix_len + 1); data/sitecopy-0.16.6/intl/relocatable.c:125:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (memory, curr_prefix_arg, curr_prefix_len + 1); data/sitecopy-0.16.6/intl/relocatable.c:206:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (q, curr_pathname, p - curr_pathname); data/sitecopy-0.16.6/intl/relocatable.c:269:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (curr_prefix, curr_installdir, curr_prefix_len); data/sitecopy-0.16.6/intl/relocatable.c:296: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 location[MAX_PATH]; data/sitecopy-0.16.6/intl/relocatable.c:310:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char location_as_posix_path[2 * MAX_PATH]; data/sitecopy-0.16.6/intl/relocatable.c:340:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen ("/proc/self/maps", "r"); data/sitecopy-0.16.6/intl/relocatable.c:458:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result, curr_prefix, curr_prefix_len); data/sitecopy-0.16.6/intl/textdomain.c:101:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (new_domain, domainname, len); data/sitecopy-0.16.6/intl/vasnprintf.c:170:21: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # define DCHAR_CPY memcpy data/sitecopy-0.16.6/intl/vasnprintf.c:222: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 pointbuf[5]; data/sitecopy-0.16.6/intl/vasnprintf.c:223:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (pointbuf, "%#.0f", 1.0); data/sitecopy-0.16.6/intl/vasnprintf.c:447:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (r_ptr, a_ptr, a_len * sizeof (mp_limb_t)); data/sitecopy-0.16.6/intl/vasnprintf.c:554:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (r_ptr, a_ptr, a_len * sizeof (mp_limb_t)); data/sitecopy-0.16.6/intl/vasnprintf.c:2302:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf ((char *) p, "%+d", exponent); data/sitecopy-0.16.6/intl/vasnprintf.c:2308: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 expbuf[6 + 1]; data/sitecopy-0.16.6/intl/vasnprintf.c:2310:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (expbuf, "%+d", exponent); data/sitecopy-0.16.6/intl/vasnprintf.c:2453:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf ((char *) p, "%+d", exponent); data/sitecopy-0.16.6/intl/vasnprintf.c:2459: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 expbuf[6 + 1]; data/sitecopy-0.16.6/intl/vasnprintf.c:2461:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (expbuf, "%+d", exponent); data/sitecopy-0.16.6/intl/vasnprintf.c:2526:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result + length, tmp, count * sizeof (DCHAR_T)); data/sitecopy-0.16.6/intl/vasnprintf.c:2887:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf ((char *) p, "%+.2d", exponent); data/sitecopy-0.16.6/intl/vasnprintf.c:2893:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char expbuf[6 + 1]; data/sitecopy-0.16.6/intl/vasnprintf.c:2895:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (expbuf, "%+.2d", exponent); data/sitecopy-0.16.6/intl/vasnprintf.c:3044:10: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf ((char *) p, "%+.2d", exponent); data/sitecopy-0.16.6/intl/vasnprintf.c:3050: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. char expbuf[6 + 1]; data/sitecopy-0.16.6/intl/vasnprintf.c:3052:10: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (expbuf, "%+.2d", exponent); data/sitecopy-0.16.6/intl/vasnprintf.c:3261:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char expbuf[6 + 1]; data/sitecopy-0.16.6/intl/vasnprintf.c:3431: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. char expbuf[6 + 1]; data/sitecopy-0.16.6/intl/vasnprintf.c:3556:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result + length, tmp, count * sizeof (DCHAR_T)); data/sitecopy-0.16.6/intl/vasnprintf.c:3937:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (fbp, dp->width_start, n * sizeof (TCHAR_T)); data/sitecopy-0.16.6/intl/vasnprintf.c:3958:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (fbp, dp->precision_start, n * sizeof (TCHAR_T)); data/sitecopy-0.16.6/intl/vasnprintf.c:4595:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result + length, tmp, count * sizeof (DCHAR_T)); data/sitecopy-0.16.6/lib/expat/gennmtab/gennmtab.c:389: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 pageIndex[512]; data/sitecopy-0.16.6/lib/expat/gennmtab/gennmtab.c:434: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 tab[2*65536]; data/sitecopy-0.16.6/lib/expat/gennmtab/gennmtab.c:437: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(tab + 65536, tab, 65536); data/sitecopy-0.16.6/lib/expat/xmlparse/xmlparse.c:112: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). char open; data/sitecopy-0.16.6/lib/expat/xmlparse/xmlparse.c:870:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, end, nLeftOver); data/sitecopy-0.16.6/lib/expat/xmlparse/xmlparse.c:877:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(XML_GetBuffer(parser, len), s, len); data/sitecopy-0.16.6/lib/expat/xmlparse/xmlparse.c:927:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(newBuf, bufferPtr, bufferEnd - bufferPtr); data/sitecopy-0.16.6/lib/expat/xmlparse/xmlparse.c:1213:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (entity->open) data/sitecopy-0.16.6/lib/expat/xmlparse/xmlparse.c:1302:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tag->buf, tag->rawName, tag->rawNameLength); data/sitecopy-0.16.6/lib/expat/xmlparse/xmlparse.c:1776:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(b->uri, uri, len * sizeof(XML_Char)); data/sitecopy-0.16.6/lib/expat/xmlparse/xmlparse.c:1987: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 encodingBuf[128]; data/sitecopy-0.16.6/lib/expat/xmlparse/xmlparse.c:2539:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (entity->open) data/sitecopy-0.16.6/lib/expat/xmlparse/xmlparse.c:2803:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). else if (entity->open) { data/sitecopy-0.16.6/lib/expat/xmlparse/xmlparse.c:2866:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (entity->open) { data/sitecopy-0.16.6/lib/expat/xmlparse/xmlparse.c:3215:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!e->open) data/sitecopy-0.16.6/lib/expat/xmlparse/xmlparse.c:3329: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(&tem, p1, sizeof(DTD)); data/sitecopy-0.16.6/lib/expat/xmlparse/xmlparse.c:3330: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(p1, p2, sizeof(DTD)); data/sitecopy-0.16.6/lib/expat/xmlparse/xmlparse.c:3331: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(p2, &tem, sizeof(DTD)); data/sitecopy-0.16.6/lib/expat/xmlparse/xmlparse.c:3645:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pool->blocks->s, pool->start, (pool->end - pool->start) * sizeof(XML_Char)); data/sitecopy-0.16.6/lib/expat/xmlparse/xmlparse.c:3675:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tem->s, pool->start, (pool->ptr - pool->start) * sizeof(XML_Char)); data/sitecopy-0.16.6/lib/expat/xmltok/xmltok.c:137: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 type[256]; data/sitecopy-0.16.6/lib/expat/xmltok/xmltok.c:896: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[1]; data/sitecopy-0.16.6/lib/expat/xmltok/xmltok.c:930: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). char open; data/sitecopy-0.16.6/lib/expat/xmltok/xmltok.c:989:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (c == open) data/sitecopy-0.16.6/lib/expat/xmltok/xmltok.c:1169: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 utf8[256][4]; data/sitecopy-0.16.6/lib/expat/xmltok/xmltok.c:1210: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[XML_UTF8_ENCODE_MAX]; data/sitecopy-0.16.6/lib/expat/xmltok/xmltok.c:1268: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 *)mem)[i] = ((char *)&latin1_encoding)[i]; data/sitecopy-0.16.6/lib/expat/xmltok/xmltok_impl.c:585:6: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int open; data/sitecopy-0.16.6/lib/expat/xmltok/xmltok_impl.c:597:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). switch (open) { data/sitecopy-0.16.6/lib/expat/xmltok/xmltok_impl.c:614:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (t == open) data/sitecopy-0.16.6/lib/expat/xmltok/xmltok_impl.c:949:25: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int PREFIX(scanLit)(int open, const ENCODING *enc, data/sitecopy-0.16.6/lib/expat/xmltok/xmltok_impl.c:960:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (t != open) data/sitecopy-0.16.6/lib/expat/xmltok/xmltok_impl.c:1502:53: [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). || BYTE_TYPE(enc, ptr + MINBPC(enc)) == open)) data/sitecopy-0.16.6/lib/expat/xmltok/xmltok_ns.c:61: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[ENCODING_MAX]; data/sitecopy-0.16.6/lib/neon/ne_207.c:195: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[500]; data/sitecopy-0.16.6/lib/neon/ne_207.c:288:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[50]; data/sitecopy-0.16.6/lib/neon/ne_207.c:290:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%d", status->code); data/sitecopy-0.16.6/lib/neon/ne_alloc.c:91:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(new, s, n); data/sitecopy-0.16.6/lib/neon/ne_alloc.c:193:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. return memcpy(ret, s, n); data/sitecopy-0.16.6/lib/neon/ne_auth.c:160:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char username[NE_ABUFSIZ]; data/sitecopy-0.16.6/lib/neon/ne_auth.c:187:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char h_a1[33]; data/sitecopy-0.16.6/lib/neon/ne_auth.c:295:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ret[33]; data/sitecopy-0.16.6/lib/neon/ne_auth.c:296:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char data[256]; data/sitecopy-0.16.6/lib/neon/ne_auth.c:370:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *tmp, password[NE_ABUFSIZ]; data/sitecopy-0.16.6/lib/neon/ne_auth.c:694:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char password[NE_ABUFSIZ]; data/sitecopy-0.16.6/lib/neon/ne_auth.c:777:6: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp_md5_ascii[33]; data/sitecopy-0.16.6/lib/neon/ne_auth.c:838:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char a2_md5_ascii[33], rdig_md5_ascii[33]; data/sitecopy-0.16.6/lib/neon/ne_auth.c:839:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char nc_value[9] = {0}; data/sitecopy-0.16.6/lib/neon/ne_auth.c:1066:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char a2_md5_ascii[33], rdig_md5_ascii[33]; data/sitecopy-0.16.6/lib/neon/ne_auth.c:1171:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char err[128]; data/sitecopy-0.16.6/lib/neon/ne_basic.c:96:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[200]; data/sitecopy-0.16.6/lib/neon/ne_basic.c:204:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char brange[64]; data/sitecopy-0.16.6/lib/neon/ne_compress.c:50:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char outbuf[NE_BUFSIZ]; data/sitecopy-0.16.6/lib/neon/ne_compress.c:60:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char header[10]; data/sitecopy-0.16.6/lib/neon/ne_compress.c:63:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char footer[8]; data/sitecopy-0.16.6/lib/neon/ne_compress.c:149:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ctx->footer + ctx->footcount, buf, len); data/sitecopy-0.16.6/lib/neon/ne_compress.c:317:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ctx->header + ctx->hdrcount, buf, count); data/sitecopy-0.16.6/lib/neon/ne_dates.c:59:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char rfc1123_weekdays[7][4] = { data/sitecopy-0.16.6/lib/neon/ne_dates.c:62:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char short_months[12][4] = { data/sitecopy-0.16.6/lib/neon/ne_dates.c:170:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char wkday[4], mon[4]; data/sitecopy-0.16.6/lib/neon/ne_dates.c:196:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char wkday[11], mon[4]; data/sitecopy-0.16.6/lib/neon/ne_dates.c:232:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char wkday[4], mon[4]; data/sitecopy-0.16.6/lib/neon/ne_gnutls.c:114:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char err[128], err2[128]; data/sitecopy-0.16.6/lib/neon/ne_gnutls.c:161:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[128]; data/sitecopy-0.16.6/lib/neon/ne_gnutls.c:232:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rdn[50]; data/sitecopy-0.16.6/lib/neon/ne_gnutls.c:261:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char oid[32] = {0}; data/sitecopy-0.16.6/lib/neon/ne_gnutls.c:280:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char c1[1024], c2[1024]; data/sitecopy-0.16.6/lib/neon/ne_gnutls.c:357:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[255]; data/sitecopy-0.16.6/lib/neon/ne_gnutls.c:386:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/sitecopy-0.16.6/lib/neon/ne_gnutls.c:805:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *f = fopen(filename, "r"); data/sitecopy-0.16.6/lib/neon/ne_gnutls.c:807:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[4192]; data/sitecopy-0.16.6/lib/neon/ne_gnutls.c:1050:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buffer[10*1024]; data/sitecopy-0.16.6/lib/neon/ne_gnutls.c:1053:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen(filename, "w"); data/sitecopy-0.16.6/lib/neon/ne_gnutls.c:1084:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char digest1[NE_SSL_DIGESTLEN], digest2[NE_SSL_DIGESTLEN]; data/sitecopy-0.16.6/lib/neon/ne_gnutls.c:1150:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sha1[20], *p; data/sitecopy-0.16.6/lib/neon/ne_locks.c:420: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). return atoi(depth); data/sitecopy-0.16.6/lib/neon/ne_md5.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 buffer[128]; data/sitecopy-0.16.6/lib/neon/ne_md5.c:73:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char fillbuf[64] = { 0x80, 0 /* , 0, 0, ... */ }; data/sitecopy-0.16.6/lib/neon/ne_md5.c:107:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. return memcpy(ne_malloc(sizeof *ctx), ctx, sizeof *ctx); data/sitecopy-0.16.6/lib/neon/ne_md5.c:150:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&ctx->buffer[bytes], fillbuf, pad); data/sitecopy-0.16.6/lib/neon/ne_md5.c:172: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 buffer[BLOCKSIZE + 72]; data/sitecopy-0.16.6/lib/neon/ne_md5.c:227:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&ctx->buffer[left_over], buffer, add); data/sitecopy-0.16.6/lib/neon/ne_md5.c:234:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (ctx->buffer, &ctx->buffer[(left_over + add) & ~63], data/sitecopy-0.16.6/lib/neon/ne_md5.c:254:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (ctx->buffer, buffer, len); data/sitecopy-0.16.6/lib/neon/ne_md5.c:430:37: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void ne_md5_to_ascii(const unsigned char md5_buf[16], char *buffer) data/sitecopy-0.16.6/lib/neon/ne_md5.c:442:28: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void ne_ascii_to_md5(const char *buffer, unsigned char md5_buf[16]) data/sitecopy-0.16.6/lib/neon/ne_md5.c:442:51: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void ne_ascii_to_md5(const char *buffer, unsigned char md5_buf[16]) data/sitecopy-0.16.6/lib/neon/ne_md5.c:451: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 *ne_md5_finish_ascii(struct ne_md5_ctx *ctx, char buffer[33]) data/sitecopy-0.16.6/lib/neon/ne_md5.c:451:51: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *ne_md5_finish_ascii(struct ne_md5_ctx *ctx, char buffer[33]) data/sitecopy-0.16.6/lib/neon/ne_md5.h:90:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *ne_md5_finish_ascii(struct ne_md5_ctx *ctx, char buffer[33]); data/sitecopy-0.16.6/lib/neon/ne_md5.h:90:51: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *ne_md5_finish_ascii(struct ne_md5_ctx *ctx, char buffer[33]); data/sitecopy-0.16.6/lib/neon/ne_md5.h:93:37: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void ne_md5_to_ascii(const unsigned char md5_buf[16], char *buffer); data/sitecopy-0.16.6/lib/neon/ne_md5.h:94:28: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void ne_ascii_to_md5(const char *buffer, unsigned char md5_buf[16]); data/sitecopy-0.16.6/lib/neon/ne_md5.h:94:51: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void ne_ascii_to_md5(const char *buffer, unsigned char md5_buf[16]); data/sitecopy-0.16.6/lib/neon/ne_openssl.c:277:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/sitecopy-0.16.6/lib/neon/ne_openssl.c:783:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen(filename, "rb"); data/sitecopy-0.16.6/lib/neon/ne_openssl.c:879:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen(filename, "r"); data/sitecopy-0.16.6/lib/neon/ne_openssl.c:900:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen(filename, "w"); data/sitecopy-0.16.6/lib/neon/ne_openssl.c:979:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sha1[EVP_MAX_MD_SIZE]; data/sitecopy-0.16.6/lib/neon/ne_pkcs11.c:97: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. unsigned char value[8192], subject[8192]; data/sitecopy-0.16.6/lib/neon/ne_pkcs11.c:180:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char certid[8192]; data/sitecopy-0.16.6/lib/neon/ne_pkcs11.c:301:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pin[NE_SSL_P11PINLEN]; data/sitecopy-0.16.6/lib/neon/ne_private.h:114:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char error[512]; data/sitecopy-0.16.6/lib/neon/ne_request.c:116:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char respbuf[NE_BUFSIZ]; data/sitecopy-0.16.6/lib/neon/ne_request.c:274:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, req->body.buf.pnt, count); data/sitecopy-0.16.6/lib/neon/ne_request.c:301:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char err[200], offstr[20]; data/sitecopy-0.16.6/lib/neon/ne_request.c:307:17: [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(err, _("offset invalid")); data/sitecopy-0.16.6/lib/neon/ne_request.c:342:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[NE_BUFSIZ]; data/sitecopy-0.16.6/lib/neon/ne_request.c:526:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[NE_BUFSIZ]; data/sitecopy-0.16.6/lib/neon/ne_request.c:755:6: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char crlfbuf[2]; data/sitecopy-0.16.6/lib/neon/ne_request.c:882: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). status->code = atoi(buffer + 4); data/sitecopy-0.16.6/lib/neon/ne_request.c:1050:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(f->value + f->vlen, ", ", 2); data/sitecopy-0.16.6/lib/neon/ne_request.c:1051:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(f->value + f->vlen + 2, value, vlen + 1); data/sitecopy-0.16.6/lib/neon/ne_request.c:1070:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hdr[MAX_HEADER_LEN]; data/sitecopy-0.16.6/lib/neon/ne_request.c:1128:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/sitecopy-0.16.6/lib/neon/ne_request.c:1341:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char err[200]; data/sitecopy-0.16.6/lib/neon/ne_request.c:1402:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ruri[200]; data/sitecopy-0.16.6/lib/neon/ne_request.c:1484:6: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[150]; data/sitecopy-0.16.6/lib/neon/ne_session.c:138:5: [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(sess->error, "Unknown error."); data/sitecopy-0.16.6/lib/neon/ne_session.c:388:5: [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(sess->error, _("Server certificate verification failed: ")); data/sitecopy-0.16.6/lib/neon/ne_socket.c:216:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[RDBUFSIZ]; data/sitecopy-0.16.6/lib/neon/ne_socket.c:218:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char error[192]; data/sitecopy-0.16.6/lib/neon/ne_socket.c:443:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, sock->bufpos, buflen); data/sitecopy-0.16.6/lib/neon/ne_socket.c:458:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, sock->buffer, buflen); data/sitecopy-0.16.6/lib/neon/ne_socket.c:485:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, sock->bufpos, buflen); data/sitecopy-0.16.6/lib/neon/ne_socket.c:794:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, sock->bufpos, len); data/sitecopy-0.16.6/lib/neon/ne_socket.c:884:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&addr->addrs[n], hp->h_addr_list[n], hp->h_length); data/sitecopy-0.16.6/lib/neon/ne_socket.c:889:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(addr->addrs, &laddr, sizeof *addr->addrs); data/sitecopy-0.16.6/lib/neon/ne_socket.c:1090:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&in6, addr->ai_addr, sizeof in6); data/sitecopy-0.16.6/lib/neon/ne_socket.c:1098:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&in, addr->ai_addr, sizeof in); data/sitecopy-0.16.6/lib/neon/ne_socket.c:1167:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&in6, addr->ai_addr, sizeof in6); data/sitecopy-0.16.6/lib/neon/ne_socket.c:1182:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&in, addr->ai_addr, sizeof in); data/sitecopy-0.16.6/lib/neon/ne_socket.c:1279:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ia->ai_addr, sad, len); data/sitecopy-0.16.6/lib/neon/ne_socket.c:1282:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ia, &saun.sin.sin_addr.s_addr, sizeof *ia); data/sitecopy-0.16.6/lib/neon/ne_socket.c:1313:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&in4->sin_addr.s_addr, raw, sizeof in4->sin_addr.s_addr); data/sitecopy-0.16.6/lib/neon/ne_socket.c:1322:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&in6->sin6_addr, raw, sizeof in6->sin6_addr.s6_addr); data/sitecopy-0.16.6/lib/neon/ne_socket.c:1326:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&ia->s_addr, raw, sizeof ia->s_addr); data/sitecopy-0.16.6/lib/neon/ne_socket.c:1410:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. dest->data = memcpy(gnutls_malloc(src->size), src->data, src->size); data/sitecopy-0.16.6/lib/neon/ne_socket.c:1644:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, sess->session_id, *buflen); data/sitecopy-0.16.6/lib/neon/ne_sspi.c:349:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/sitecopy-0.16.6/lib/neon/ne_sspi.c:355:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hostbuffer[256]; data/sitecopy-0.16.6/lib/neon/ne_string.c:146:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(str, next, len); data/sitecopy-0.16.6/lib/neon/ne_string.c:182:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. ret = memcpy(ne_malloc(total + 1), str, slen); data/sitecopy-0.16.6/lib/neon/ne_string.c:202:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf->data + buf->used - 1, data, len); data/sitecopy-0.16.6/lib/neon/ne_string.c:350:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char ascii_printable[256] = { data/sitecopy-0.16.6/lib/neon/ne_string.c:404:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[256]; data/sitecopy-0.16.6/lib/neon/ne_string.c:446:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char ascii_tolower[256] = { data/sitecopy-0.16.6/lib/neon/ne_stubssl.c:105:56: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. int ne_ssl_cert_digest(const ne_ssl_certificate *cert, char digest[60]) data/sitecopy-0.16.6/lib/neon/ne_uri.c:220: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). parsed->port = atoi(p + 1); data/sitecopy-0.16.6/lib/neon/ne_uri.c:294:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ret, base->path, len); data/sitecopy-0.16.6/lib/neon/ne_uri.c:295:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ret + len, path, strlen(path) + 1); data/sitecopy-0.16.6/lib/neon/ne_uri.c:456:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *ret, *retpos, buf[5] = { "0x00" }; data/sitecopy-0.16.6/lib/neon/ne_uri.c:498:6: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(p, "%%%02x", (unsigned char) *pnt); data/sitecopy-0.16.6/lib/neon/ne_uri.c:583:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[20]; data/sitecopy-0.16.6/lib/neon/ne_xml.c:123:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char error[ERR_SIZE]; data/sitecopy-0.16.6/lib/neon/ne_xml.c:452:5: [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(p->error, _("Unknown error")); data/sitecopy-0.16.6/lib/neon/ne_xml.c:537:13: [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(p->error, _("Invalid Byte Order Mark")); data/sitecopy-0.16.6/lib/neon/ne_xml.c:617:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/sitecopy-0.16.6/lib/neon/ne_xmlreq.c:44:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[8000]; data/sitecopy-0.16.6/lib/netrc.c:84:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[POPBUFSIZE+1], *p, *tok; data/sitecopy-0.16.6/lib/netrc.c:97:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen (file, "r"); data/sitecopy-0.16.6/lib/yesno.c:44:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/sitecopy-0.16.6/src/console_fe.c:141:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char *sitenames[MAXSITES]; data/sitecopy-0.16.6/src/console_fe.c:486:6: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char errbuf[20]; data/sitecopy-0.16.6/src/console_fe.c:496:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *f = fopen(optarg, "a+"); data/sitecopy-0.16.6/src/console_fe.c:581:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *dn, fprint[61]; data/sitecopy-0.16.6/src/console_fe.c:680:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[256]; data/sitecopy-0.16.6/src/console_fe.c:956:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[80]; data/sitecopy-0.16.6/src/davdriver.c:103:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char err[256]; data/sitecopy-0.16.6/src/davdriver.c:300:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char password[FE_LBUFSIZ]; data/sitecopy-0.16.6/src/davdriver.c:375:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int ret, fd = open(local, O_RDONLY | OPEN_BINARY_FLAGS); data/sitecopy-0.16.6/src/davdriver.c:443:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int ret, fd = open(local, O_RDONLY | OPEN_BINARY_FLAGS); data/sitecopy-0.16.6/src/davdriver.c:479:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int ret, fd = open(local, data/sitecopy-0.16.6/src/davdriver.c:514:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFSIZ]; data/sitecopy-0.16.6/src/davdriver.c:694: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). file->size = atoi(clength); data/sitecopy-0.16.6/src/ftp.c:108:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cwd[PATH_MAX]; data/sitecopy-0.16.6/src/ftp.c:114:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char username[FE_LBUFSIZ], password[FE_LBUFSIZ]; data/sitecopy-0.16.6/src/ftp.c:119:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rbuf[BUFSIZ]; data/sitecopy-0.16.6/src/ftp.c:122:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char error[BUFSIZ]; data/sitecopy-0.16.6/src/ftp.c:203: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). *code = atoi(buf); data/sitecopy-0.16.6/src/ftp.c:255:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char addr[4]; data/sitecopy-0.16.6/src/ftp.c:403:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/sitecopy-0.16.6/src/ftp.c:427:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[BUFSIZ]; data/sitecopy-0.16.6/src/ftp.c:473:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[BUFSIZ]; data/sitecopy-0.16.6/src/ftp.c:503:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[BUFSIZ]; data/sitecopy-0.16.6/src/ftp.c:575:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/sitecopy-0.16.6/src/ftp.c:755:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFSIZ]; data/sitecopy-0.16.6/src/ftp.c:847:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dir[PATH_MAX]; data/sitecopy-0.16.6/src/ftp.c:885: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). f = fopen(localfile, "r" FOPEN_BINARY_FLAGS); data/sitecopy-0.16.6/src/ftp.c:968:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *f = fopen(localfile, "wb"); data/sitecopy-0.16.6/src/ftp.c:1010:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[BUFSIZ]; data/sitecopy-0.16.6/src/ftp.c:1027:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/sitecopy-0.16.6/src/ftp.c:1154:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char err[512]; data/sitecopy-0.16.6/src/protocol.h:46:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char checksum[16]; data/sitecopy-0.16.6/src/rcfile.c:99:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[LINESIZE]; data/sitecopy-0.16.6/src/rcfile.c:101:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *ptr, key[LINESIZE], val[LINESIZE], val2[LINESIZE]; data/sitecopy-0.16.6/src/rcfile.c:105:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fp = fopen(rcfile, "r")) == NULL) { data/sitecopy-0.16.6/src/rcfile.c:265: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(this_site, &default_site, sizeof(struct site)); data/sitecopy-0.16.6/src/rcfile.c:290: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). this_site->server.port = atoi(val); data/sitecopy-0.16.6/src/rcfile.c:294: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). this_site->proxy.port = atoi(val); data/sitecopy-0.16.6/src/rcfile.c:714:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen (filename, "w"); data/sitecopy-0.16.6/src/rshdriver.c:51:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFSIZ]; data/sitecopy-0.16.6/src/rshdriver.c:52:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char err[BUFSIZ]; data/sitecopy-0.16.6/src/sftpdriver.c:59:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFSIZ]; data/sitecopy-0.16.6/src/sitefiles.c:219:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(FS_ALPHA(other), FS_ALPHA(file), sizeof(struct file_state)); data/sitecopy-0.16.6/src/sitefiles.c:226:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(FS_ALPHA(file), state, sizeof(struct file_state)); data/sitecopy-0.16.6/src/sitefiles.c:375:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dest, src, sizeof(struct file_state)); data/sitecopy-0.16.6/src/sitefiles.c:408: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). f = fopen(fname, "r" FOPEN_BINARY_FLAGS); data/sitecopy-0.16.6/src/sitefiles.c:416:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[33] = {0}; data/sitecopy-0.16.6/src/sitefiles.c:505:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(file->stored.checksum, file->local.checksum, 16); data/sitecopy-0.16.6/src/sitefiles.c:523:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(file->local.checksum, file->stored.checksum, 16); data/sitecopy-0.16.6/src/sites.c:427:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pnt, ".in.", 4); data/sitecopy-0.16.6/src/sites.c:923:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[BUFSIZ] = {0}; data/sitecopy-0.16.6/src/sites.c:1065:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(state.checksum, pf->checksum, 16); data/sitecopy-0.16.6/src/sites.c:1140:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *dirstack[DIRSTACKSIZE]; data/sitecopy-0.16.6/src/sites.h:232:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char checksum[16]; /* the MD5 checksum of the file */ data/sitecopy-0.16.6/src/sitesi.h:62:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char l[33], s[33]; \ data/sitecopy-0.16.6/src/sitestore.c:63:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char filebuf[PATH_MAX]; data/sitecopy-0.16.6/src/sitestore.c:75:23: [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). site->storage_file = fopen(filebuf, "w" FOPEN_BINARY_FLAGS); data/sitecopy-0.16.6/src/sitestore.c:82:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char filebuf[PATH_MAX]; data/sitecopy-0.16.6/src/sitestore.c:111:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(p, "%%%02x", *pnt); data/sitecopy-0.16.6/src/sitestore.c:198: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 csum[33]; data/sitecopy-0.16.6/src/sitestore.c:327:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char err[512]; data/sitecopy-0.16.6/src/sitestore.c:360:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[33]; data/sitecopy-0.16.6/src/sitestore.c:442:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[BUFSIZ]; data/sitecopy-0.16.6/src/sitestore.c:478:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen(site->infofile, "r"); data/sitecopy-0.16.6/gnome/gcommon.c:66: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 ( (!replacementString) || (strlen(replacementString) < 1) ) data/sitecopy-0.16.6/gnome/gcommon.c:236:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(username, gtk_entry_get_text( GTK_ENTRY( widget ) ), data/sitecopy-0.16.6/gnome/gcommon.c:240:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(password, gtk_entry_get_text( GTK_ENTRY( widget ) ), data/sitecopy-0.16.6/gnome/misc.c:131: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). rcfile_backup = malloc(strlen(rcfile) + 5); data/sitecopy-0.16.6/gnome/misc.c:467: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). summary = (char *) malloc(strlen(tmp_site->name) + 32); data/sitecopy-0.16.6/gnome/misc.c:613: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). errstr = realloc(errstr, strlen(errstr) + 1); data/sitecopy-0.16.6/gnome/new_site.c:1274: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 (! ((!tmp_string) || (strlen(tmp_string) < 1))) data/sitecopy-0.16.6/intl/bindtextdom.c:135:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (dirname) + 1; data/sitecopy-0.16.6/intl/bindtextdom.c:173:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (codeset) + 1; data/sitecopy-0.16.6/intl/bindtextdom.c:204:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (domainname) + 1; data/sitecopy-0.16.6/intl/bindtextdom.c:232:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (dirname) + 1; data/sitecopy-0.16.6/intl/bindtextdom.c:261:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (codeset) + 1; data/sitecopy-0.16.6/intl/dcigettext.c:542: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). msgid_len = strlen (msgid1) + 1; data/sitecopy-0.16.6/intl/dcigettext.c:636:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t dirname_len = strlen (dirname) + 1; data/sitecopy-0.16.6/intl/dcigettext.c:678: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). domainname_len = strlen (domainname); data/sitecopy-0.16.6/intl/dcigettext.c:679: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). xdomainname = (char *) alloca (strlen (categoryname) data/sitecopy-0.16.6/intl/dcigettext.c:688: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). single_locale = (char *) alloca (strlen (categoryvalue) + 1); data/sitecopy-0.16.6/intl/dcigettext.c:782: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). size += strlen (localename) + 1; data/sitecopy-0.16.6/intl/dcigettext.c:911: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). nls_uint32 len = strlen (msgid); data/sitecopy-0.16.6/intl/dcigettext.c:1115: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). charsetstr += strlen ("charset="); data/sitecopy-0.16.6/intl/dcigettext.c:1158:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (outcharset); data/sitecopy-0.16.6/intl/dcigettext.c:1601:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (value) + 1; data/sitecopy-0.16.6/intl/eval-plural.h:88:13: [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. case equal: data/sitecopy-0.16.6/intl/finddomain.c:94: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 (dirname) + 1, 0, locale, NULL, NULL, data/sitecopy-0.16.6/intl/finddomain.c:134:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (alias_value) + 1; data/sitecopy-0.16.6/intl/finddomain.c:157: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 (dirname) + 1, mask, language, territory, data/sitecopy-0.16.6/intl/l10nflist.c:98:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t part_len = strlen (argz); data/sitecopy-0.16.6/intl/l10nflist.c:123:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t part_len = strlen (argz); data/sitecopy-0.16.6/intl/l10nflist.c:197:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen (language) data/sitecopy-0.16.6/intl/l10nflist.c:199: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 (territory) + 1 : 0) data/sitecopy-0.16.6/intl/l10nflist.c:201: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 (codeset) + 1 : 0) data/sitecopy-0.16.6/intl/l10nflist.c:203: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 (normalized_codeset) + 1 : 0) data/sitecopy-0.16.6/intl/l10nflist.c:205: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 (modifier) + 1 : 0) data/sitecopy-0.16.6/intl/l10nflist.c:206: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). + 1 + strlen (filename) + 1); data/sitecopy-0.16.6/intl/l10nflist.c:326: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). = _nl_make_l10nflist (l10nfile_list, dir, strlen (dir) + 1, data/sitecopy-0.16.6/intl/langprefs.c:76:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size += strlen (buf) + 1; data/sitecopy-0.16.6/intl/langprefs.c:108:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen (buf); data/sitecopy-0.16.6/intl/loadmsgcat.c:470:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define read(fd, buf, n) read_not_cancel (fd, buf, n) data/sitecopy-0.16.6/intl/loadmsgcat.c:874:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). long int nb = (long int) read (fd, read_ptr, to_read); data/sitecopy-0.16.6/intl/loadmsgcat.c:1053: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). need += strlen (sysdep_segment_values[sysdepref]); data/sitecopy-0.16.6/intl/loadmsgcat.c:1188: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). n = strlen (sysdep_segment_values[sysdepref]); data/sitecopy-0.16.6/intl/localcharset.c:87:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef getc data/sitecopy-0.16.6/intl/localcharset.c:88:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getc getc_unlocked data/sitecopy-0.16.6/intl/localcharset.c:128:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t dir_len = strlen (dir); data/sitecopy-0.16.6/intl/localcharset.c:129:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t base_len = strlen (base); data/sitecopy-0.16.6/intl/localcharset.c:158:12: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (fp); data/sitecopy-0.16.6/intl/localcharset.c:167:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (fp); data/sitecopy-0.16.6/intl/localcharset.c:174:12: [1] (buffer) fscanf: 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. if (fscanf (fp, "%50s %50s", buf1, buf2) < 2) data/sitecopy-0.16.6/intl/localcharset.c:176: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). l1 = strlen (buf1); data/sitecopy-0.16.6/intl/localcharset.c:177: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). l2 = strlen (buf2); data/sitecopy-0.16.6/intl/localcharset.c:446: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). aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1) data/sitecopy-0.16.6/intl/localcharset.c:446: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). aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1) data/sitecopy-0.16.6/intl/localcharset.c:450: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). codeset = aliases + strlen (aliases) + 1; data/sitecopy-0.16.6/intl/localealias.c:324: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). alias_len = strlen (alias) + 1; data/sitecopy-0.16.6/intl/localealias.c:325: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). value_len = strlen (value) + 1; data/sitecopy-0.16.6/intl/localename.c:924: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 (name) == 7 && name[2] == '-') data/sitecopy-0.16.6/intl/log.c:83: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). last_logfilename = (char *) malloc (strlen (logfilename) + 1); data/sitecopy-0.16.6/intl/os2compat.c:59: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). size_t sl = strlen (root); data/sitecopy-0.16.6/intl/os2compat.c:60:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _nlos2_libdir = (char *) malloc (sl + strlen (LIBDIR) + 1); data/sitecopy-0.16.6/intl/os2compat.c:62:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memcpy (_nlos2_libdir + sl, LIBDIR, strlen (LIBDIR) + 1); data/sitecopy-0.16.6/intl/os2compat.c:73: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). size_t sl = strlen (root); data/sitecopy-0.16.6/intl/os2compat.c:74: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). _nlos2_localealiaspath = (char *) malloc (sl + strlen (LOCALE_ALIAS_PATH) + 1); data/sitecopy-0.16.6/intl/os2compat.c:76:67: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memcpy (_nlos2_localealiaspath + sl, LOCALE_ALIAS_PATH, strlen (LOCALE_ALIAS_PATH) + 1); data/sitecopy-0.16.6/intl/os2compat.c:87: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). size_t sl = strlen (root); data/sitecopy-0.16.6/intl/os2compat.c:88: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). _nlos2_localedir = (char *) malloc (sl + strlen (LOCALEDIR) + 1); data/sitecopy-0.16.6/intl/os2compat.c:90: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). memcpy (_nlos2_localedir + sl, LOCALEDIR, strlen (LOCALEDIR) + 1); data/sitecopy-0.16.6/intl/os2compat.c:96: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 (_nlos2_localedir) <= MAXPATHLEN) data/sitecopy-0.16.6/intl/plural-exp.h:53:3: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. equal, /* Comparison for equality. */ data/sitecopy-0.16.6/intl/plural.c:933: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). # define yystrlen strlen data/sitecopy-0.16.6/intl/plural.c:1855:15: [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. lval->op = equal; data/sitecopy-0.16.6/intl/relocatable.c:115: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). orig_prefix_len = strlen (orig_prefix_arg); data/sitecopy-0.16.6/intl/relocatable.c:116: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). curr_prefix_len = strlen (curr_prefix_arg); data/sitecopy-0.16.6/intl/relocatable.c:182: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). if (strncmp (orig_installprefix, orig_installdir, strlen (orig_installprefix)) data/sitecopy-0.16.6/intl/relocatable.c:186: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). rel_installdir = orig_installdir + strlen (orig_installprefix); data/sitecopy-0.16.6/intl/relocatable.c:191: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). const char *p = curr_pathname + strlen (curr_pathname); data/sitecopy-0.16.6/intl/relocatable.c:214: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). const char *rp = rel_installdir + strlen (rel_installdir); data/sitecopy-0.16.6/intl/relocatable.c:215: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). const char *cp = curr_installdir + strlen (curr_installdir); data/sitecopy-0.16.6/intl/relocatable.c:317:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (location_as_posix_path) >= MAX_PATH - 1) data/sitecopy-0.16.6/intl/relocatable.c:354:19: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (c = getc (fp), c != EOF && c != '\n' && c != '/') data/sitecopy-0.16.6/intl/relocatable.c:373:15: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (c = getc (fp), c != EOF && c != '\n') data/sitecopy-0.16.6/intl/relocatable.c:452: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). (char *) xmalloc (curr_prefix_len + strlen (pathname_tail) + 1); data/sitecopy-0.16.6/intl/textdomain.c:98:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (domainname) + 1; data/sitecopy-0.16.6/intl/vasnprintf.c:128:24: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). # define local_wcslen wcslen data/sitecopy-0.16.6/intl/vasnprintf.c:2778: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). ndigits = strlen (digits); data/sitecopy-0.16.6/intl/vasnprintf.c:2838: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). ndigits = strlen (digits); data/sitecopy-0.16.6/intl/vasnprintf.c:2950: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). ndigits = strlen (digits); data/sitecopy-0.16.6/intl/vasnprintf.c:3134: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). ndigits = strlen (digits); data/sitecopy-0.16.6/intl/vasnprintf.c:3191: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). ndigits = strlen (digits); data/sitecopy-0.16.6/intl/vasnprintf.c:3316: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). ndigits = strlen (digits); data/sitecopy-0.16.6/intl/vasnprintf.c:3820: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). tmp_length = strlen (a.arg[dp->arg_index].a.a_string); data/sitecopy-0.16.6/lib/dirname.c:72:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (newpath, path, length); data/sitecopy-0.16.6/lib/getopt.c:220: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 (!defined __STDC__ || !__STDC__) && !defined strlen data/sitecopy-0.16.6/lib/getopt.c:223: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). extern int strlen (const char *); data/sitecopy-0.16.6/lib/getopt.c:421: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). int len = nonoption_flags_max_len = strlen (orig_str); data/sitecopy-0.16.6/lib/getopt.c:642: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). == (unsigned int) strlen (p->name)) data/sitecopy-0.16.6/lib/getopt.c:666: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). nextchar += strlen (nextchar); data/sitecopy-0.16.6/lib/getopt.c:696: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). nextchar += strlen (nextchar); data/sitecopy-0.16.6/lib/getopt.c:712: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). nextchar += strlen (nextchar); data/sitecopy-0.16.6/lib/getopt.c:717: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). nextchar += strlen (nextchar); data/sitecopy-0.16.6/lib/getopt.c:828: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 ((unsigned int) (nameend - nextchar) == strlen (p->name)) data/sitecopy-0.16.6/lib/getopt.c:851: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). nextchar += strlen (nextchar); data/sitecopy-0.16.6/lib/getopt.c:871: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). nextchar += strlen (nextchar); data/sitecopy-0.16.6/lib/getopt.c:885: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). nextchar += strlen (nextchar); data/sitecopy-0.16.6/lib/getopt.c:889: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). nextchar += strlen (nextchar); data/sitecopy-0.16.6/lib/neon/ne_acl.h:43:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int read; data/sitecopy-0.16.6/lib/neon/ne_alloc.c:82: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). DO_MALLOC(ret, strlen(s) + 1); data/sitecopy-0.16.6/lib/neon/ne_alloc.c:186:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return strcpy(tracking_malloc(strlen(s) + 1, file, line), s); data/sitecopy-0.16.6/lib/neon/ne_auth.c:388: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). sess->basic = ne_base64((unsigned char *)tmp, strlen(tmp)); data/sitecopy-0.16.6/lib/neon/ne_auth.c:421: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). token.length = strlen(token.value); data/sitecopy-0.16.6/lib/neon/ne_auth.c:563:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(ptr) == 0) { data/sitecopy-0.16.6/lib/neon/ne_auth.c:769: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). ne_md5_process_bytes(sess->username, strlen(sess->username), tmp); data/sitecopy-0.16.6/lib/neon/ne_auth.c:771: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). ne_md5_process_bytes(sess->realm, strlen(sess->realm), tmp); data/sitecopy-0.16.6/lib/neon/ne_auth.c:773: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). ne_md5_process_bytes(password, strlen(password), tmp); data/sitecopy-0.16.6/lib/neon/ne_auth.c:786: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). ne_md5_process_bytes(sess->nonce, strlen(sess->nonce), a1); data/sitecopy-0.16.6/lib/neon/ne_auth.c:788: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). ne_md5_process_bytes(sess->cnonce, strlen(sess->cnonce), a1); data/sitecopy-0.16.6/lib/neon/ne_auth.c:823: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). inside = strncmp(uri.path, d, strlen(d)) == 0; data/sitecopy-0.16.6/lib/neon/ne_auth.c:857: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). ne_md5_process_bytes(req->method, strlen(req->method), a2); data/sitecopy-0.16.6/lib/neon/ne_auth.c:859: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). ne_md5_process_bytes(req->uri, strlen(req->uri), a2); data/sitecopy-0.16.6/lib/neon/ne_auth.c:873: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). ne_md5_process_bytes(sess->nonce, strlen(sess->nonce), rdig); data/sitecopy-0.16.6/lib/neon/ne_auth.c:881: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). ne_md5_process_bytes(sess->cnonce, strlen(sess->cnonce), rdig); data/sitecopy-0.16.6/lib/neon/ne_auth.c:886: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). ne_md5_process_bytes(qop_value, strlen(qop_value), rdig); data/sitecopy-0.16.6/lib/neon/ne_auth.c:1071: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). ne_md5_process_bytes(req->uri, strlen(req->uri), a2); data/sitecopy-0.16.6/lib/neon/ne_auth.c:1080: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). ne_md5_process_bytes(qop_value, strlen(qop_value), data/sitecopy-0.16.6/lib/neon/ne_basic.c:133: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). rlen = range ? strlen(range + 6) : 0; data/sitecopy-0.16.6/lib/neon/ne_basic.c:245: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). ne_set_request_body_buffer(req, buffer, strlen(buffer)); data/sitecopy-0.16.6/lib/neon/ne_gnutls.c:173: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). && memcmp((a)->oid.data, o, strlen(o)) == 0) data/sitecopy-0.16.6/lib/neon/ne_pkcs11.c:328:66: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). rv = pakchois_login(pks, CKU_USER, (unsigned char *)pin, strlen(pin)); data/sitecopy-0.16.6/lib/neon/ne_request.c:291:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return read(req->body.file.fd, buffer, count); data/sitecopy-0.16.6/lib/neon/ne_request.c:880: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). && strncmp(buffer, "ICY ", 4) == 0 && strlen(buffer) > 8 data/sitecopy-0.16.6/lib/neon/ne_request.c:1042:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t vlen = strlen(value); data/sitecopy-0.16.6/lib/neon/ne_request.c:1079: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). pnt = hdr + strlen(hdr) - 1; data/sitecopy-0.16.6/lib/neon/ne_session.c:114:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(host->hostname); data/sitecopy-0.16.6/lib/neon/ne_session.c:251: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). sess->user_agent = ne_malloc(strlen(UAHDR) + strlen(AGENT) + data/sitecopy-0.16.6/lib/neon/ne_session.c:251: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). sess->user_agent = ne_malloc(strlen(UAHDR) + strlen(AGENT) + data/sitecopy-0.16.6/lib/neon/ne_session.c:252: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). strlen(token) + 1); data/sitecopy-0.16.6/lib/neon/ne_session.c:392:16: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is low because the source is a constant string. if (flag) strncat(sess->error, ", ", sizeof sess->error); data/sitecopy-0.16.6/lib/neon/ne_session.c:393:6: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(sess->error, _(reasons[n].str), sizeof sess->error); data/sitecopy-0.16.6/lib/neon/ne_socket.c:1566: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). strlen(ctx->hostname)); data/sitecopy-0.16.6/lib/neon/ne_string.c:97: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). pnt = &ret[strlen(ret)]; data/sitecopy-0.16.6/lib/neon/ne_string.c:132: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). total += strlen(next); data/sitecopy-0.16.6/lib/neon/ne_string.c:145:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(next); data/sitecopy-0.16.6/lib/neon/ne_string.c:175:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t total, slen = strlen(str); data/sitecopy-0.16.6/lib/neon/ne_string.c:196: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). ne_buffer_append(buf, str, strlen(str)); data/sitecopy-0.16.6/lib/neon/ne_string.c:252: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). buf->used = strlen(buf->data) + 1; data/sitecopy-0.16.6/lib/neon/ne_string.c:316:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t inlen = strlen(data); data/sitecopy-0.16.6/lib/neon/ne_string.c:430:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return strlen(str); data/sitecopy-0.16.6/lib/neon/ne_string.c:442:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return strlen(str); data/sitecopy-0.16.6/lib/neon/ne_string.h:134:1: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(dest, src, ne__nm1); dest[ne__nm1] = '\0'; } while (0) data/sitecopy-0.16.6/lib/neon/ne_uri.c:119:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(uri); data/sitecopy-0.16.6/lib/neon/ne_uri.c:134:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(uri); data/sitecopy-0.16.6/lib/neon/ne_uri.c:292:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *ret = ne_malloc(strlen(path) + len + 1); data/sitecopy-0.16.6/lib/neon/ne_uri.c:295: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). memcpy(ret + len, path, strlen(path) + 1); data/sitecopy-0.16.6/lib/neon/ne_uri.c:307: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). out = ne_malloc(strlen(path) + 1); data/sitecopy-0.16.6/lib/neon/ne_uri.c:366:13: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(out, in, p - in); data/sitecopy-0.16.6/lib/neon/ne_uri.c:457: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). retpos = ret = ne_malloc(strlen(uri) + 1); data/sitecopy-0.16.6/lib/neon/ne_uri.c:494: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). p = ret = ne_malloc(strlen(path) + 2 * count + 1); data/sitecopy-0.16.6/lib/neon/ne_uri.c:553: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). lena = strlen(a), lenb = strlen(b); data/sitecopy-0.16.6/lib/neon/ne_uri.c:553: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). lena = strlen(a), lenb = strlen(b); data/sitecopy-0.16.6/lib/neon/ne_uri.c:608:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(parent) >= strlen(child)) { data/sitecopy-0.16.6/lib/neon/ne_uri.c:608: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 (strlen(parent) >= strlen(child)) { data/sitecopy-0.16.6/lib/neon/ne_uri.c:612: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). root[strlen(parent)] = '\0'; data/sitecopy-0.16.6/lib/neon/ne_xml.c:420: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). if (strlen(ns->name) == pfxlen && data/sitecopy-0.16.6/lib/neon/ne_xmlreq.c:76: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). || ((stlen = strlen(ctype->subtype)) > 4 data/sitecopy-0.16.6/lib/netrc.c:114: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). for (p = buf + strlen(buf) - 1; (p >= buf) && isspace((unsigned)*p); p--) data/sitecopy-0.16.6/lib/yesno.c:48:15: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = getchar ()) != EOF && c != '\n') data/sitecopy-0.16.6/src/common.c:91:6: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(errbuf, token, 19); data/sitecopy-0.16.6/src/console_fe.c:463: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). if (strlen(optarg) != 0) { data/sitecopy-0.16.6/src/console_fe.c:471: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). if (strlen(optarg) != 0) { data/sitecopy-0.16.6/src/console_fe.c:472: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). if (optarg[strlen(optarg)] != '/') { data/sitecopy-0.16.6/src/console_fe.c:473: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). copypath = ne_malloc(strlen(optarg) + 2); data/sitecopy-0.16.6/src/console_fe.c:475:7: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(copypath, "/"); data/sitecopy-0.16.6/src/console_fe.c:832: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). char wrap = error && strlen(error) < 30 ? ' ' : '\n'; data/sitecopy-0.16.6/src/davdriver.c:570: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). ret = ne_realloc(ret, strlen(ret) + 2); data/sitecopy-0.16.6/src/davdriver.c:571:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(ret, "/"); data/sitecopy-0.16.6/src/davdriver.c:682: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). file->filename = ne_strdup(uhref+strlen(ctx->root)); data/sitecopy-0.16.6/src/davdriver.c:689: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). file->filename[strlen(file->filename) - 1] = '\0'; data/sitecopy-0.16.6/src/ftp.c:228:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(response) != 18) { data/sitecopy-0.16.6/src/ftp.c:378:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ret = ne_sock_fullwrite(sess->pisock, line, strlen(line)); data/sitecopy-0.16.6/src/ftp.c:444: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). buflen = strlen(buffer); data/sitecopy-0.16.6/src/ftp.c:849: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 (!sess->use_cwd || fn[0] != '/' || strlen(fn) > PATH_MAX) data/sitecopy-0.16.6/src/ftp.c:1030:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(sess->username) == 0 || strlen(sess->password) == 0) { data/sitecopy-0.16.6/src/ftp.c:1030: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 (strlen(sess->username) == 0 || strlen(sess->password) == 0) { data/sitecopy-0.16.6/src/ftp.c:1058:5: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(sess->cwd, "x"); data/sitecopy-0.16.6/src/ftp.c:1113:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(sess->error, error, BUFSIZ); data/sitecopy-0.16.6/src/lsparser.c:50: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). ptr = ctx->topdir + strlen(ctx->topdir) - 1; data/sitecopy-0.16.6/src/lsparser.c:81: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 (strncmp(line, ctx->topdir, strlen(ctx->topdir)) == 0) { data/sitecopy-0.16.6/src/lsparser.c:82: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). line += strlen(ctx->topdir); data/sitecopy-0.16.6/src/lsparser.c:99:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(line); data/sitecopy-0.16.6/src/lsparser.c:209:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(line); data/sitecopy-0.16.6/src/rcfile.c:227:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(key) == 0) { data/sitecopy-0.16.6/src/rcfile.c:230:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(val) == 0) { data/sitecopy-0.16.6/src/rcfile.c:256:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). } else if (strlen(val2) == 0) { data/sitecopy-0.16.6/src/rcfile.c:315: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 (val[strlen(val)-1] != '/') data/sitecopy-0.16.6/src/rcfile.c:316:7: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(val, "/"); data/sitecopy-0.16.6/src/rcfile.c:330: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 (val[strlen(val)-1] != '/') data/sitecopy-0.16.6/src/rcfile.c:331:7: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(val, "/"); data/sitecopy-0.16.6/src/rcfile.c:738:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (strlen(current->server.username) > 0)) data/sitecopy-0.16.6/src/rcfile.c:745: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(current->server.password) > 0)) data/sitecopy-0.16.6/src/sftpdriver.c:71:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t ret = read(sess->fd_in, sess->buf+pos, BUFSIZ-pos); data/sitecopy-0.16.6/src/sftpdriver.c:176:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(sess->buf) + 2 >= BUFSIZ) { /* will be added '\n' */ data/sitecopy-0.16.6/src/sftpdriver.c:182:5: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(sess->buf, "\n"); data/sitecopy-0.16.6/src/sftpdriver.c:183: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 (write(sess->fd_out, sess->buf, strlen(sess->buf)) == -1) { data/sitecopy-0.16.6/src/sitefiles.c:427: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). ret = ne_malloc(strlen(site->remote_root) + strlen(state->filename) + 1); data/sitecopy-0.16.6/src/sitefiles.c:427:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ret = ne_malloc(strlen(site->remote_root) + strlen(state->filename) + 1); data/sitecopy-0.16.6/src/sitefiles.c:432:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). off = strlen(site->remote_root); data/sitecopy-0.16.6/src/sitefiles.c:433:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(state->filename) + 1; /* +1 for \0 */ data/sitecopy-0.16.6/src/sites.c:319: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). buffer = (char *) calloc(strlen(site->remote_root)+1,sizeof(char)); data/sitecopy-0.16.6/src/sites.c:416: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). ret = ne_malloc(strlen(filename) + 4 + 1); data/sitecopy-0.16.6/src/sites.c:426: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). memmove(pnt+4, pnt, strlen(pnt) + 1); data/sitecopy-0.16.6/src/sites.c:848:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t dnlen = strlen(ent->d_name); data/sitecopy-0.16.6/src/sites.c:898: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). fname = (char *)full+strlen(site->local_root); data/sitecopy-0.16.6/src/sitestore.c:106: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). char *ret = ne_malloc(strlen(filename) * 3 + 1), *p = ret; data/sitecopy-0.16.6/src/sitestore.c:127: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). char *ret = ne_malloc(strlen(filename) + 1), *p = ret; data/sitecopy-0.16.6/src/sitestore.c:350:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(cdata) > 32) { ANALYSIS SUMMARY: Hits = 698 Lines analyzed = 69726 in approximately 1.88 seconds (37127 lines/second) Physical Source Lines of Code (SLOC) = 50180 Hits@level = [0] 315 [1] 214 [2] 333 [3] 52 [4] 94 [5] 5 Hits@level+ = [0+] 1013 [1+] 698 [2+] 484 [3+] 151 [4+] 99 [5+] 5 Hits/KSLOC@level+ = [0+] 20.1873 [1+] 13.9099 [2+] 9.64528 [3+] 3.00917 [4+] 1.9729 [5+] 0.0996413 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.