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/fetchmail-6.4.13/libesmtp/getaddrinfo.h Examining data/fetchmail-6.4.13/libesmtp/getaddrinfo.c Examining data/fetchmail-6.4.13/smbencrypt.h Examining data/fetchmail-6.4.13/smbutil.c Examining data/fetchmail-6.4.13/smbmd4.h Examining data/fetchmail-6.4.13/starttls.c Examining data/fetchmail-6.4.13/rcfile_y.h Examining data/fetchmail-6.4.13/uid_db.h Examining data/fetchmail-6.4.13/x509_name_match.c Examining data/fetchmail-6.4.13/conf.c Examining data/fetchmail-6.4.13/ntlm.h Examining data/fetchmail-6.4.13/fetchmail.c Examining data/fetchmail-6.4.13/i18n.h Examining data/fetchmail-6.4.13/getopt.c Examining data/fetchmail-6.4.13/sink.c Examining data/fetchmail-6.4.13/env.c Examining data/fetchmail-6.4.13/smbencrypt.c Examining data/fetchmail-6.4.13/uid_db.c Examining data/fetchmail-6.4.13/rfc822.c Examining data/fetchmail-6.4.13/smbmd4.c Examining data/fetchmail-6.4.13/getpass.c Examining data/fetchmail-6.4.13/report.c Examining data/fetchmail-6.4.13/interface.c Examining data/fetchmail-6.4.13/fm_getaddrinfo.c Examining data/fetchmail-6.4.13/getopt.h Examining data/fetchmail-6.4.13/contrib/gai.c Examining data/fetchmail-6.4.13/beos/beos_nameser_compat.h Examining data/fetchmail-6.4.13/beos/beos_nameser.h Examining data/fetchmail-6.4.13/options.c Examining data/fetchmail-6.4.13/netrc.c Examining data/fetchmail-6.4.13/trio/trio.c Examining data/fetchmail-6.4.13/trio/triostr.h Examining data/fetchmail-6.4.13/trio/trionan.c Examining data/fetchmail-6.4.13/trio/trionan.h Examining data/fetchmail-6.4.13/trio/regression.c Examining data/fetchmail-6.4.13/trio/triostr.c Examining data/fetchmail-6.4.13/trio/trio.h Examining data/fetchmail-6.4.13/trio/triodef.h Examining data/fetchmail-6.4.13/trio/triop.h Examining data/fetchmail-6.4.13/unmime.c Examining data/fetchmail-6.4.13/md5c.c Examining data/fetchmail-6.4.13/md5ify.c Examining data/fetchmail-6.4.13/strstr.c Examining data/fetchmail-6.4.13/sdump.h Examining data/fetchmail-6.4.13/rfc822valid.c Examining data/fetchmail-6.4.13/rcfile_y.c Examining data/fetchmail-6.4.13/strlcat.c Examining data/fetchmail-6.4.13/fm_strl.h Examining data/fetchmail-6.4.13/socket.h Examining data/fetchmail-6.4.13/smtp.c Examining data/fetchmail-6.4.13/idle.c Examining data/fetchmail-6.4.13/KAME/getnameinfo.c Examining data/fetchmail-6.4.13/fm_md5.h Examining data/fetchmail-6.4.13/tunable.h Examining data/fetchmail-6.4.13/transact.c Examining data/fetchmail-6.4.13/gettext.h Examining data/fetchmail-6.4.13/smbdes.h Examining data/fetchmail-6.4.13/idlist.c Examining data/fetchmail-6.4.13/rfc2047e.c Examining data/fetchmail-6.4.13/rpa.c Examining data/fetchmail-6.4.13/lock.c Examining data/fetchmail-6.4.13/checkalias.c Examining data/fetchmail-6.4.13/netrc.h Examining data/fetchmail-6.4.13/daemon.c Examining data/fetchmail-6.4.13/smbbyteorder.h Examining data/fetchmail-6.4.13/ntlmsubr.c Examining data/fetchmail-6.4.13/rcfile_l.c Examining data/fetchmail-6.4.13/fm_realpath.c Examining data/fetchmail-6.4.13/getopt1.c Examining data/fetchmail-6.4.13/mxget.c Examining data/fetchmail-6.4.13/servport.c Examining data/fetchmail-6.4.13/strcasecmp.c Examining data/fetchmail-6.4.13/sdump.c Examining data/fetchmail-6.4.13/strlcpy.c Examining data/fetchmail-6.4.13/kerberos.c Examining data/fetchmail-6.4.13/base64.c Examining data/fetchmail-6.4.13/xmalloc.h Examining data/fetchmail-6.4.13/stpcpy.c Examining data/fetchmail-6.4.13/smbdes.c Examining data/fetchmail-6.4.13/xmalloc.c Examining data/fetchmail-6.4.13/smbtypes.h Examining data/fetchmail-6.4.13/ucs/norm_charmap.c Examining data/fetchmail-6.4.13/ucs/norm_charmap.h Examining data/fetchmail-6.4.13/lock.h Examining data/fetchmail-6.4.13/gssapi.c Examining data/fetchmail-6.4.13/kerberos.h Examining data/fetchmail-6.4.13/mx.h Examining data/fetchmail-6.4.13/cram.c Examining data/fetchmail-6.4.13/uid.c Examining data/fetchmail-6.4.13/memmove.c Examining data/fetchmail-6.4.13/smtp.h Examining data/fetchmail-6.4.13/opie.c Examining data/fetchmail-6.4.13/driver.c Examining data/fetchmail-6.4.13/etrn.c Examining data/fetchmail-6.4.13/fetchmail.h Examining data/fetchmail-6.4.13/imap.c Examining data/fetchmail-6.4.13/odmr.c Examining data/fetchmail-6.4.13/pop2.c Examining data/fetchmail-6.4.13/pop3.c Examining data/fetchmail-6.4.13/socket.c FINAL RESULTS: data/fetchmail-6.4.13/driver.c:956:32: [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. if (ctl->preconnect && (err = system(ctl->preconnect))) data/fetchmail-6.4.13/driver.c:1332:14: [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. (void) snprintf(buf, sizeof(buf), data/fetchmail-6.4.13/driver.c:1336:14: [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. (void) snprintf(buf, sizeof(buf), GT_("%s at %s"), data/fetchmail-6.4.13/driver.c:1593:39: [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. if (ctl->postconnect && (tmperr = system(ctl->postconnect))) data/fetchmail-6.4.13/env.c:57:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, data/fetchmail-6.4.13/env.c:69:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, data/fetchmail-6.4.13/env.c:81:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, data/fetchmail-6.4.13/env.c:182: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, fmhome); data/fetchmail-6.4.13/env.c:190: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(rcfile, RCFILE_NAME); data/fetchmail-6.4.13/env.c:200:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, GT_("%s: can't determine your host!"), data/fetchmail-6.4.13/env.c:222:6: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, data/fetchmail-6.4.13/env.c:225:6: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, GT_("Cannot find my own host in hosts database to qualify it!\n")); data/fetchmail-6.4.13/env.c:229:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, GT_("Trying to continue with unqualified hostname.\nDO NOT report broken Received: headers, HELO/EHLO lines or similar problems!\nDO repair your /etc/hosts, DNS, NIS or LDAP instead.\n")); data/fetchmail-6.4.13/etrn.c:154:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, GT_("Option --keep is not supported with ETRN\n")); data/fetchmail-6.4.13/etrn.c:158:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, GT_("Option --flush is not supported with ETRN\n")); data/fetchmail-6.4.13/etrn.c:162:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, GT_("Option --folder is not supported with ETRN\n")); data/fetchmail-6.4.13/etrn.c:166:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, GT_("Option --check is not supported with ETRN\n")); data/fetchmail-6.4.13/fetchmail.c:142:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(fp, GT_("Copyright (C) 2002, 2003 Eric S. Raymond\n" data/fetchmail-6.4.13/fetchmail.c:148:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(fp, GT_("Fetchmail comes with ABSOLUTELY NO WARRANTY. This is free software, and you\n" data/fetchmail-6.4.13/fetchmail.c:304:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(GT_("This is fetchmail release %s"), VERSION); data/fetchmail-6.4.13/fetchmail.c:308:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(GT_("WARNING: Your SSL/TLS library does not support TLS v1.3.\n")); data/fetchmail-6.4.13/fetchmail.c:311:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(GT_("WARNING: Compiled against LibreSSL, which is not a supported configuration.\n")); data/fetchmail-6.4.13/fetchmail.c:314:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(GT_("WARNING: Compiled without SSL/TLS.\n")); data/fetchmail-6.4.13/fetchmail.c:329:6: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (system("uname -a")) { /* NOOP to quench GCC complaint */ } data/fetchmail-6.4.13/fetchmail.c:340:34: [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. if (outlevel >= O_NORMAL) { fprintf(stderr, GT_("The nodetach option is in effect, ignoring logfile option.\n")); } data/fetchmail-6.4.13/fetchmail.c:347:34: [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. if (outlevel >= O_NORMAL) { fprintf(stderr, GT_("Not running in daemon mode, ignoring logfile option.\n")); } data/fetchmail-6.4.13/fetchmail.c:353:26: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (run.logfile && 0 != access(run.logfile, F_OK)) { data/fetchmail-6.4.13/fetchmail.c:354:34: [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. if (outlevel >= O_NORMAL) { fprintf(stderr, GT_("Logfile \"%s\" does not exist, ignoring logfile option.\n"), run.logfile); } data/fetchmail-6.4.13/fetchmail.c:359:26: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (run.logfile && 0 != access(run.logfile, W_OK)) { data/fetchmail-6.4.13/fetchmail.c:360:6: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, GT_("Logfile \"%s\" is not writable, aborting.\n"), run.logfile); data/fetchmail-6.4.13/fetchmail.c:378:6: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(LOG_ERR, GT_("syslog and logfile options are both set, ignoring syslog, and logging to %s"), run.logfile); data/fetchmail-6.4.13/fetchmail.c:467:19: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. int havercfile = access(rcfile, 0); data/fetchmail-6.4.13/fetchmail.c:469:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(GT_("Taking options from command line%s%s\n"), data/fetchmail-6.4.13/fetchmail.c:474:6: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, data/fetchmail-6.4.13/fetchmail.c:508:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr,GT_("fetchmail: no other fetchmail is running\n")); data/fetchmail-6.4.13/fetchmail.c:514:6: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr,GT_("fetchmail: error killing %s fetchmail at %ld; bailing out.\n"), data/fetchmail-6.4.13/fetchmail.c:523:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr,GT_("fetchmail: %s fetchmail at %ld killed.\n"), data/fetchmail-6.4.13/fetchmail.c:545:6: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, data/fetchmail-6.4.13/fetchmail.c:551:6: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, data/fetchmail-6.4.13/fetchmail.c:558:6: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, data/fetchmail-6.4.13/fetchmail.c:568:6: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, data/fetchmail-6.4.13/fetchmail.c:580:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, data/fetchmail-6.4.13/fetchmail.c:592:6: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, data/fetchmail-6.4.13/fetchmail.c:607:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, data/fetchmail-6.4.13/fetchmail.c:616:3: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(tmpbuf, pplen, password_prompt, data/fetchmail-6.4.13/fetchmail.c:751:6: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp(argv[0], argv); data/fetchmail-6.4.13/fetchmail.c:1148:4: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr,GT_("Warning: multiple mentions of host %s in config file\n"),argv[optind]); data/fetchmail-6.4.13/fetchmail.c:1187:6: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, GT_("fetchmail: Error: multiple \"defaults\" records in config file, or \"defaults\" is not the first record.\n")); data/fetchmail-6.4.13/fetchmail.c:1394:14: [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. (void) fprintf(stderr, data/fetchmail-6.4.13/fetchmail.c:1401:14: [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. (void) fprintf(stderr, data/fetchmail-6.4.13/fetchmail.c:1419:11: [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. (void) fprintf(stderr, data/fetchmail-6.4.13/fetchmail.c:1433:10: [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. (void) fprintf(stderr, data/fetchmail-6.4.13/fetchmail.c:1443:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, data/fetchmail-6.4.13/fetchmail.c:1645:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(GT_("Poll interval is %d seconds\n"), runp->poll_interval); data/fetchmail-6.4.13/fetchmail.c:1647:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(GT_("Logfile is %s\n"), runp->logfile); data/fetchmail-6.4.13/fetchmail.c:1649:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(GT_("Idfile is %s\n"), runp->idfile); data/fetchmail-6.4.13/fetchmail.c:1652:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(GT_("Progress messages will be logged via syslog\n")); data/fetchmail-6.4.13/fetchmail.c:1655:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(GT_("Fetchmail will masquerade and will not generate Received\n")); data/fetchmail-6.4.13/fetchmail.c:1657:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(GT_("Fetchmail will show progress dots even in logfiles.\n")); data/fetchmail-6.4.13/fetchmail.c:1659:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(GT_("Fetchmail will forward misaddressed multidrop messages to %s.\n"), data/fetchmail-6.4.13/fetchmail.c:1663:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(GT_("Fetchmail will direct error mail to the postmaster.\n")); data/fetchmail-6.4.13/fetchmail.c:1665:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(GT_("Fetchmail will direct error mail to the sender.\n")); data/fetchmail-6.4.13/fetchmail.c:1668:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(GT_("Fetchmail will treat permanent errors as permanent (drop messages).\n")); data/fetchmail-6.4.13/fetchmail.c:1670:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(GT_("Fetchmail will treat permanent errors as temporary (keep messages).\n")); data/fetchmail-6.4.13/fetchmail.c:1677:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(GT_("Options for retrieving from %s@%s:\n"), data/fetchmail-6.4.13/fetchmail.c:1681:6: [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(GT_(" Mail will be retrieved via %s\n"), ctl->server.via); data/fetchmail-6.4.13/fetchmail.c:1684:6: [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(ngettext(" Poll of this server will occur every %d interval.\n", data/fetchmail-6.4.13/fetchmail.c:1688:6: [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(GT_(" True name of server is %s.\n"), ctl->server.truename); data/fetchmail-6.4.13/fetchmail.c:1690:6: [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(ctl->server.skip data/fetchmail-6.4.13/fetchmail.c:1696: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(GT_(" Password will be prompted for.\n")); data/fetchmail-6.4.13/fetchmail.c:1700:7: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(GT_(" APOP secret = \"%s\".\n"), data/fetchmail-6.4.13/fetchmail.c:1703:7: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(GT_(" RPOP id = \"%s\".\n"), data/fetchmail-6.4.13/fetchmail.c:1706:7: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(GT_(" Password = \"%s\".\n"), data/fetchmail-6.4.13/fetchmail.c:1715:6: [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(GT_(" Protocol is KPOP with Kerberos %s authentication"), data/fetchmail-6.4.13/fetchmail.c:1718:6: [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(GT_(" Protocol is %s"), showproto(ctl->server.protocol)); data/fetchmail-6.4.13/fetchmail.c:1720:6: [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(GT_(" (using service %s)"), ctl->server.service); data/fetchmail-6.4.13/fetchmail.c:1722:6: [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(GT_(" (using default port)")); data/fetchmail-6.4.13/fetchmail.c:1724:6: [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(GT_(" (forcing UIDL use)")); data/fetchmail-6.4.13/fetchmail.c:1730:6: [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(GT_(" All available authentication methods will be tried.\n")); data/fetchmail-6.4.13/fetchmail.c:1733:6: [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(GT_(" Password authentication will be forced.\n")); data/fetchmail-6.4.13/fetchmail.c:1736:6: [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(GT_(" MSN authentication will be forced.\n")); data/fetchmail-6.4.13/fetchmail.c:1739:6: [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(GT_(" NTLM authentication will be forced.\n")); data/fetchmail-6.4.13/fetchmail.c:1742:6: [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(GT_(" OTP authentication will be forced.\n")); data/fetchmail-6.4.13/fetchmail.c:1745:6: [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(GT_(" CRAM-MD5 authentication will be forced.\n")); data/fetchmail-6.4.13/fetchmail.c:1748:6: [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(GT_(" GSSAPI authentication will be forced.\n")); data/fetchmail-6.4.13/fetchmail.c:1751:6: [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(GT_(" Kerberos V4 authentication will be forced.\n")); data/fetchmail-6.4.13/fetchmail.c:1754:6: [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(GT_(" Kerberos V5 authentication will be forced.\n")); data/fetchmail-6.4.13/fetchmail.c:1757:6: [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(GT_(" End-to-end encryption assumed.\n")); data/fetchmail-6.4.13/fetchmail.c:1761:6: [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(GT_(" Mail service principal is: %s\n"), ctl->server.principal); data/fetchmail-6.4.13/fetchmail.c:1764:6: [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(GT_(" SSL encrypted sessions enabled.\n")); data/fetchmail-6.4.13/fetchmail.c:1766:6: [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(GT_(" SSL protocol: %s.\n"), ctl->sslproto); data/fetchmail-6.4.13/fetchmail.c:1768:6: [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(GT_(" SSL server certificate checking enabled.\n")); data/fetchmail-6.4.13/fetchmail.c:1770:6: [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(GT_(" SSL server certificate checking disabled.\n")); data/fetchmail-6.4.13/fetchmail.c:1773: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(GT_(" SSL trusted certificate file: %s\n"), ctl->sslcertfile); data/fetchmail-6.4.13/fetchmail.c:1775: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(GT_(" SSL trusted certificate directory: %s\n"), ctl->sslcertpath); data/fetchmail-6.4.13/fetchmail.c:1777: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(GT_(" SSL server CommonName: %s\n"), ctl->sslcommonname); data/fetchmail-6.4.13/fetchmail.c:1779: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(GT_(" SSL key fingerprint (checked against the server key): %s\n"), ctl->sslfingerprint); data/fetchmail-6.4.13/fetchmail.c:1782:6: [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(GT_(" Server nonresponse timeout is %d seconds"), ctl->server.timeout); data/fetchmail-6.4.13/fetchmail.c:1784:6: [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(GT_(" (default).\n")); data/fetchmail-6.4.13/fetchmail.c:1791: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(GT_(" Default mailbox selected.\n")); data/fetchmail-6.4.13/fetchmail.c:1796: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(GT_(" Selected mailboxes are:")); data/fetchmail-6.4.13/fetchmail.c:1801:6: [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(ctl->fetchall data/fetchmail-6.4.13/fetchmail.c:1804:6: [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(ctl->keep data/fetchmail-6.4.13/fetchmail.c:1807:6: [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(ctl->flush data/fetchmail-6.4.13/fetchmail.c:1810:6: [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(ctl->limitflush data/fetchmail-6.4.13/fetchmail.c:1813:6: [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(ctl->rewrite data/fetchmail-6.4.13/fetchmail.c:1816:6: [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(ctl->stripcr data/fetchmail-6.4.13/fetchmail.c:1819:6: [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(ctl->forcecr data/fetchmail-6.4.13/fetchmail.c:1822:6: [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(ctl->pass8bits data/fetchmail-6.4.13/fetchmail.c:1825:6: [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(ctl->mimedecode data/fetchmail-6.4.13/fetchmail.c:1828:6: [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(ctl->idle data/fetchmail-6.4.13/fetchmail.c:1831:6: [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(ctl->dropstatus data/fetchmail-6.4.13/fetchmail.c:1834:6: [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(ctl->dropdelivered data/fetchmail-6.4.13/fetchmail.c:1840:7: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(GT_(" Message size limit is %d octets (--limit %d).\n"), data/fetchmail-6.4.13/fetchmail.c:1843:7: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(GT_(" No message size limit (--limit 0).\n")); data/fetchmail-6.4.13/fetchmail.c:1845:7: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(GT_(" Message size warning interval is %d seconds (--warnings %d).\n"), data/fetchmail-6.4.13/fetchmail.c:1848:7: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(GT_(" Size warnings on every poll (--warnings 0).\n")); data/fetchmail-6.4.13/fetchmail.c:1851: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(GT_(" Received-message limit is %d (--fetchlimit %d).\n"), data/fetchmail-6.4.13/fetchmail.c:1854: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(GT_(" No received-message limit (--fetchlimit 0).\n")); data/fetchmail-6.4.13/fetchmail.c:1856: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(GT_(" Fetch message size limit is %d (--fetchsizelimit %d).\n"), data/fetchmail-6.4.13/fetchmail.c:1859: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(GT_(" No fetch message size limit (--fetchsizelimit 0).\n")); data/fetchmail-6.4.13/fetchmail.c:1863:7: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(GT_(" Do binary search of UIDs during each poll (--fastuidl 1).\n")); data/fetchmail-6.4.13/fetchmail.c:1865:7: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(GT_(" Do binary search of UIDs during %d out of %d polls (--fastuidl %d).\n"), ctl->fastuidl - 1, ctl->fastuidl, ctl->fastuidl); data/fetchmail-6.4.13/fetchmail.c:1868: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(GT_(" Do linear search of UIDs during each poll (--fastuidl 0).\n")); data/fetchmail-6.4.13/fetchmail.c:1870: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(GT_(" SMTP message batch limit is %d.\n"), ctl->batchlimit); data/fetchmail-6.4.13/fetchmail.c:1872: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(GT_(" No SMTP message batch limit (--batchlimit 0).\n")); data/fetchmail-6.4.13/fetchmail.c:1876:7: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(GT_(" Deletion interval between expunges forced to %d (--expunge %d).\n"), ctl->expunge, ctl->expunge); data/fetchmail-6.4.13/fetchmail.c:1878:7: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(GT_(" No forced expunges (--expunge 0).\n")); data/fetchmail-6.4.13/fetchmail.c:1885:6: [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(GT_(" Domains for which mail will be fetched are:")); data/fetchmail-6.4.13/fetchmail.c:1890:7: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(GT_(" (default)")); data/fetchmail-6.4.13/fetchmail.c:1895:6: [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(GT_(" Messages will be appended to %s as BSMTP\n"), visbuf(ctl->bsmtp)); data/fetchmail-6.4.13/fetchmail.c:1897:6: [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(GT_(" Messages will be delivered with \"%s\".\n"), visbuf(ctl->mda)); data/fetchmail-6.4.13/fetchmail.c:1904: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(GT_(" Messages will be %cMTP-forwarded to:"), data/fetchmail-6.4.13/fetchmail.c:1910:4: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(GT_(" (default)")); data/fetchmail-6.4.13/fetchmail.c:1915: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(GT_(" Host part of MAIL FROM line will be %s\n"), data/fetchmail-6.4.13/fetchmail.c:1918: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(GT_(" Address to be put in RCPT TO lines shipped to SMTP will be %s\n"), data/fetchmail-6.4.13/fetchmail.c:1927:7: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(GT_(" Recognized listener spam block responses are:")); data/fetchmail-6.4.13/fetchmail.c:1933:7: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(GT_(" Spam-blocking disabled\n")); data/fetchmail-6.4.13/fetchmail.c:1936:6: [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(GT_(" Server connection will be brought up with \"%s\".\n"), data/fetchmail-6.4.13/fetchmail.c:1939:6: [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(GT_(" No pre-connection command.\n")); data/fetchmail-6.4.13/fetchmail.c:1941:6: [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(GT_(" Server connection will be taken down with \"%s\".\n"), data/fetchmail-6.4.13/fetchmail.c:1944:6: [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(GT_(" No post-connection command.\n")); data/fetchmail-6.4.13/fetchmail.c:1947:7: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(GT_(" No localnames declared for this host.\n")); data/fetchmail-6.4.13/fetchmail.c:1957:4: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(GT_(" Multi-drop mode: ")); data/fetchmail-6.4.13/fetchmail.c:1959:4: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(GT_(" Single-drop mode: ")); data/fetchmail-6.4.13/fetchmail.c:1961:7: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(ngettext("%d local name recognized.\n", "%d local names recognized.\n", count), count); data/fetchmail-6.4.13/fetchmail.c:1975:4: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(ctl->server.dns data/fetchmail-6.4.13/fetchmail.c:1981: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(GT_(" Server aliases will be compared with multidrop addresses by IP address.\n")); data/fetchmail-6.4.13/fetchmail.c:1983: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(GT_(" Server aliases will be compared with multidrop addresses by name.\n")); data/fetchmail-6.4.13/fetchmail.c:1986:8: [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(GT_(" Envelope-address routing is disabled\n")); data/fetchmail-6.4.13/fetchmail.c:1989:8: [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(GT_(" Envelope header is assumed to be: %s\n"), data/fetchmail-6.4.13/fetchmail.c:1992: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(GT_(" Number of envelope headers to be skipped over: %d\n"), data/fetchmail-6.4.13/fetchmail.c:1995: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(GT_(" Prefix %s will be removed from user id\n"), data/fetchmail-6.4.13/fetchmail.c:1998: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(GT_(" No prefix stripping\n")); data/fetchmail-6.4.13/fetchmail.c:2003:8: [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(GT_(" Predeclared mailserver aliases:")); data/fetchmail-6.4.13/fetchmail.c:2011:8: [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(GT_(" Local domains:")); data/fetchmail-6.4.13/fetchmail.c:2021:6: [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(GT_(" Connection must be through interface %s.\n"), ctl->server.interface); data/fetchmail-6.4.13/fetchmail.c:2023:6: [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(GT_(" No interface requirement specified.\n")); data/fetchmail-6.4.13/fetchmail.c:2025:6: [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(GT_(" Polling loop will monitor %s.\n"), ctl->server.monitor); data/fetchmail-6.4.13/fetchmail.c:2027:6: [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(GT_(" No monitor interface specified.\n")); data/fetchmail-6.4.13/fetchmail.c:2031:6: [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(GT_(" Server connections will be made via plugin %s (--plugin %s).\n"), ctl->server.plugin, ctl->server.plugin); data/fetchmail-6.4.13/fetchmail.c:2033:6: [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(GT_(" No plugin command specified.\n")); data/fetchmail-6.4.13/fetchmail.c:2035:6: [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(GT_(" Listener connections will be made via plugout %s (--plugout %s).\n"), ctl->server.plugout, ctl->server.plugout); data/fetchmail-6.4.13/fetchmail.c:2037:6: [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(GT_(" No plugout command specified.\n")); data/fetchmail-6.4.13/fetchmail.c:2044: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(GT_(" No UIDs saved from this host.\n")); data/fetchmail-6.4.13/fetchmail.c:2047: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(GT_(" %d UIDs saved.\n"), count); data/fetchmail-6.4.13/fetchmail.c:2053:13: [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(GT_(" Poll trace information will be added to the Received header.\n")); data/fetchmail-6.4.13/fetchmail.c:2055:13: [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(GT_(" No poll trace information will be added to the Received header.\n")); data/fetchmail-6.4.13/fetchmail.c:2060:7: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(GT_(" Messages with bad headers will be rejected.\n")); data/fetchmail-6.4.13/fetchmail.c:2063: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(GT_(" Messages with bad headers will be passed on.\n")); data/fetchmail-6.4.13/fetchmail.c:2068:6: [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(GT_(" Pass-through properties \"%s\".\n"), data/fetchmail-6.4.13/fetchmail.h:490:29: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__ ((format (printf, 2, 3))) data/fetchmail-6.4.13/fetchmail.h:493:29: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__ ((format (printf, 2, 3))) data/fetchmail-6.4.13/fetchmail.h:496:29: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__ ((format (printf, 2, 3))) data/fetchmail-6.4.13/fetchmail.h:499:29: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__ ((format (printf, 5, 6))) data/fetchmail-6.4.13/fetchmail.h:535:29: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__ ((format (printf, 2, 3))) data/fetchmail-6.4.13/fetchmail.h:541:29: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__ ((format (printf, 2, 3))) data/fetchmail-6.4.13/fetchmail.h:595:29: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__ ((format (printf, 4, 5))) data/fetchmail-6.4.13/getpass.c:68: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. char *getpass(); data/fetchmail-6.4.13/getpass.c:69:12: [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. return getpass(prompt); data/fetchmail-6.4.13/imap.c:221: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(argbuf, buf); data/fetchmail-6.4.13/imap.c:243: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(argbuf, buf); data/fetchmail-6.4.13/imap.c:259:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(argbuf, cp); data/fetchmail-6.4.13/interface.c:119:8: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. if (sscanf(cp, netdevfmt, data/fetchmail-6.4.13/interface.c:136: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(request.ifr_name, ifname); data/fetchmail-6.4.13/interface.c:143: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(request.ifr_name, ifname); data/fetchmail-6.4.13/interface.c:150: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(request.ifr_name, ifname); data/fetchmail-6.4.13/interface.c:156: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(request.ifr_name, ifname); data/fetchmail-6.4.13/libesmtp/getaddrinfo.c:271: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 (sai->ai_canonname, hp->h_name); data/fetchmail-6.4.13/lock.c:45: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(lockfile, PID_DIR); data/fetchmail-6.4.13/lock.c:47: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(lockfile, FETCHMAIL_PIDFILE); data/fetchmail-6.4.13/lock.c:51: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(lockfile, fmhome); data/fetchmail-6.4.13/lock.c:55: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(lockfile, FETCHMAIL_PIDFILE); data/fetchmail-6.4.13/netrc.c:219:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf (stderr, data/fetchmail-6.4.13/netrc.c:258:7: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf (stderr, GT_("%s:%d: warning: unknown token \"%s\"\n"), data/fetchmail-6.4.13/odmr.c:90:6: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(buf, qnp->id); data/fetchmail-6.4.13/odmr.c:245:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, GT_("Option --keep is not supported with ODMR\n")); data/fetchmail-6.4.13/odmr.c:249:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, GT_("Option --flush is not supported with ODMR\n")); data/fetchmail-6.4.13/odmr.c:253:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, GT_("Option --folder is not supported with ODMR\n")); data/fetchmail-6.4.13/odmr.c:257:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, GT_("Option --check is not supported with ODMR\n")); data/fetchmail-6.4.13/opie.c:65:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, GT_("Secret pass phrase: ")); data/fetchmail-6.4.13/options.c:179:13: [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. (void) fprintf(stderr, GT_("String '%s' is not a valid number string.\n"), s); data/fetchmail-6.4.13/options.c:188:13: [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. (void) fprintf(stderr, GT_("Value of string '%s' is %s than %d.\n"), s, data/fetchmail-6.4.13/options.c:223:13: [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. (void) fprintf(stderr, GT_("String '%s' is not a valid number string.\n"), s); data/fetchmail-6.4.13/options.c:337:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr,GT_("Invalid bad-header policy `%s' specified.\n"), optarg); data/fetchmail-6.4.13/options.c:378:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr,GT_("Invalid protocol `%s' specified.\n"), optarg); data/fetchmail-6.4.13/options.c:425:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr,GT_("Invalid authentication `%s' specified.\n"), optarg); data/fetchmail-6.4.13/pop2.c:52: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(argbuf,buf); data/fetchmail-6.4.13/pop3.c:134: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(lastok, bufp); data/fetchmail-6.4.13/pop3.c:191: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(argbuf,bufp); data/fetchmail-6.4.13/pop3.c:587:6: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, GT_("Secret pass phrase: ")); data/fetchmail-6.4.13/pop3.c:668: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(msg,start); data/fetchmail-6.4.13/pop3.c:669: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(msg,ctl->password); data/fetchmail-6.4.13/pop3.c:670: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((char *)ctl->digest, MD5Digest((unsigned char *)msg)); data/fetchmail-6.4.13/pop3.c:1253:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(sdps_envfrom,buf); data/fetchmail-6.4.13/pop3.c:1258:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(sdps_envto,"To: <%s>",buf); data/fetchmail-6.4.13/pop3.c:1389:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr,GT_("Option --folder is not supported with POP3\n")); data/fetchmail-6.4.13/rcfile_y.c:1102: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/fetchmail-6.4.13/rcfile_y.c:2086:6: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, GT_("fetchmail: interface option is only supported under Linux (without IPv6) and FreeBSD\n")); data/fetchmail-6.4.13/rcfile_y.c:2099:6: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, GT_("fetchmail: monitor option is only supported under Linux (without IPv6) and FreeBSD\n")); data/fetchmail-6.4.13/rcfile_y.c:2867:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, GT_("File %s must be a regular file.\n"), pathname); data/fetchmail-6.4.13/rcfile_y.c:2877:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, GT_("File %s must have no more than -rwx------ (0700) permissions.\n"), data/fetchmail-6.4.13/rcfile_y.c:2889:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, GT_("File %s must be owned by you.\n"), pathname); data/fetchmail-6.4.13/rcfile_y.c:3027:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (newfile, "%s/%s", dir, file); data/fetchmail-6.4.13/rcfile_y.c:3029:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (newfile, "%s%s", dir, file); data/fetchmail-6.4.13/report.c:117:6: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog (priority, message, a1, a2, a3, a4, a5, a6, a7, a8); data/fetchmail-6.4.13/report.c:140:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf (errfp, message, args); data/fetchmail-6.4.13/report.c:146:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf (errfp, message, a1, a2, a3, a4, a5, a6, a7, a8); data/fetchmail-6.4.13/report.c:218:6: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. n = vsnprintf (partial_message + partial_message_size_used, partial_message_size - partial_message_size_used, data/fetchmail-6.4.13/report.c:261:6: [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. n = snprintf (partial_message + partial_message_size_used, data/fetchmail-6.4.13/report.c:387: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 (errfp, message, args); data/fetchmail-6.4.13/report.c:393:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf (errfp, message, a1, a2, a3, a4, a5, a6, a7, a8); data/fetchmail-6.4.13/rpa.c:377:25: [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). if (linecount == 1) strcpy(buf,line1); data/fetchmail-6.4.13/rpa.c:378:25: [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). if (linecount == 2) strcpy(buf,line2); data/fetchmail-6.4.13/rpa.c:379:25: [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). if (linecount == 3) strcpy(buf,line3); data/fetchmail-6.4.13/rpa.c:391:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(argbuf,bufp); data/fetchmail-6.4.13/sink.c:1112: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(names, run.postmaster); data/fetchmail-6.4.13/sink.c:1119:7: [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(names, idp->id); data/fetchmail-6.4.13/sink.c:1180:14: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). if (names) strcpy(dp, names); data/fetchmail-6.4.13/sink.c:1187:13: [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). if (from) strcpy(dp, from); data/fetchmail-6.4.13/sink.c:1227:14: [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. sinkfp = popen(before, "w"); data/fetchmail-6.4.13/sink.c:1604: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(buf+strlen(buf), sizeof(buf)-strlen(buf)-2, fmt, ap); data/fetchmail-6.4.13/socket.c:118: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(plugin_copy + plugin_copy_offset, host); data/fetchmail-6.4.13/socket.c:123: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(plugin_copy + plugin_copy_offset, service); data/fetchmail-6.4.13/socket.c:196:3: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp(*argvec, argvec); data/fetchmail-6.4.13/socket.c:289:6: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(buf, sizeof(buf), GT_("unknown (%s)"), gai_strerror(gnie)); data/fetchmail-6.4.13/socket.c:292:6: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(pb, sizeof(pb), GT_("unknown (%s)"), gai_strerror(gnie)); data/fetchmail-6.4.13/socket.c:305:6: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(errbuf+strlen(errbuf), sizeof(errbuf)-strlen(errbuf),\ data/fetchmail-6.4.13/socket.c:327:6: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(errbuf+strlen(errbuf), sizeof(errbuf)-strlen(errbuf), GT_("name %d: connection to %s:%s [%s/%s] failed: %s.\n"), ord, host, service, buf, pb, strerror(e)); data/fetchmail-6.4.13/socket.c:372: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(buf, sizeof(buf), format, ap); data/fetchmail-6.4.13/socket.c:788:11: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. esz = snprintf(tp, te - tp, dp > 0 ? ":%02X" : "%02X", digest[dp]); data/fetchmail-6.4.13/socket.h:53:29: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__ ((format (printf, 2, 3))) data/fetchmail-6.4.13/stpcpy.c:23: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(dest, src); data/fetchmail-6.4.13/transact.c:1308:3: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(errhd+strlen(errhd), sizeof(errhd)-strlen(errhd), data/fetchmail-6.4.13/transact.c:1317:6: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(errhd+strlen(errhd), sizeof(errhd)-strlen(errhd), data/fetchmail-6.4.13/transact.c:1325:6: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(errhd+strlen(errhd), sizeof(errhd)-strlen(errhd), data/fetchmail-6.4.13/transact.c:1333: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(errmsg, errhd); data/fetchmail-6.4.13/transact.c:1337:7: [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(errmsg, idp->id); data/fetchmail-6.4.13/transact.c:1569: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(buf + strlen(buf), sizeof(buf)-2-strlen(buf), fmt, ap); data/fetchmail-6.4.13/transact.c:1773: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(buf + strlen(buf), sizeof(buf)-2-strlen(buf), fmt, ap); data/fetchmail-6.4.13/trio/regression.c:35:8: [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. #undef printf data/fetchmail-6.4.13/trio/trio.h:160:9: [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. # undef printf data/fetchmail-6.4.13/trio/trio.h:161:10: [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 trio_printf data/fetchmail-6.4.13/trio/trio.h:164:9: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # undef vprintf data/fetchmail-6.4.13/trio/trio.h:165:10: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define vprintf trio_vprintf data/fetchmail-6.4.13/trio/trio.h:168:9: [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. # undef fprintf data/fetchmail-6.4.13/trio/trio.h:169:10: [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 fprintf trio_fprintf data/fetchmail-6.4.13/trio/trio.h:172:9: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # undef vfprintf data/fetchmail-6.4.13/trio/trio.h:173:10: [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. # define vfprintf trio_vfprintf data/fetchmail-6.4.13/trio/trio.h:176:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # undef sprintf data/fetchmail-6.4.13/trio/trio.h:177:10: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # define sprintf trio_sprintf data/fetchmail-6.4.13/trio/trio.h:180:9: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # undef vsprintf data/fetchmail-6.4.13/trio/trio.h:181:10: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # define vsprintf trio_vsprintf data/fetchmail-6.4.13/trio/trio.h:184:9: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # undef snprintf data/fetchmail-6.4.13/trio/trio.h:185: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. # define snprintf trio_snprintf data/fetchmail-6.4.13/trio/trio.h:188:9: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # undef vsnprintf data/fetchmail-6.4.13/trio/trio.h:189:10: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define vsnprintf trio_vsnprintf data/fetchmail-6.4.13/trio/trio.h:192:9: [4] (buffer) scanf: 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. # undef scanf data/fetchmail-6.4.13/trio/trio.h:193:10: [4] (buffer) scanf: 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. # define scanf trio_scanf data/fetchmail-6.4.13/trio/trio.h:196:9: [4] (buffer) vscanf: 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. # undef vscanf data/fetchmail-6.4.13/trio/trio.h:197:10: [4] (buffer) vscanf: 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. # define vscanf trio_vscanf data/fetchmail-6.4.13/trio/trio.h:200:9: [4] (buffer) fscanf: 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. # undef fscanf data/fetchmail-6.4.13/trio/trio.h:201:10: [4] (buffer) fscanf: 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. # define fscanf trio_fscanf data/fetchmail-6.4.13/trio/trio.h:204:9: [4] (buffer) vfscanf: 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. # undef vfscanf data/fetchmail-6.4.13/trio/trio.h:205:10: [4] (buffer) vfscanf: 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. # define vfscanf trio_vfscanf data/fetchmail-6.4.13/trio/trio.h:208: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. # undef sscanf data/fetchmail-6.4.13/trio/trio.h:209:10: [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. # define sscanf trio_sscanf data/fetchmail-6.4.13/trio/trio.h:212:9: [4] (buffer) vsscanf: 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. # undef vsscanf data/fetchmail-6.4.13/trio/trio.h:213:10: [4] (buffer) vsscanf: 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. # define vsscanf trio_vsscanf data/fetchmail-6.4.13/trio/triostr.c:424:11: [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). return (strcat(target, source) != NULL); data/fetchmail-6.4.13/trio/triostr.c:516: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). (void)strcpy(target, source); data/fetchmail-6.4.13/uid.c:478:10: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(idfile, F_OK) == 0) data/fetchmail-6.4.13/uid.c:486: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(newnam, idfile); data/fetchmail-6.4.13/xmalloc.c:52: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(p,s); data/fetchmail-6.4.13/xmalloc.c:62: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(p,s); data/fetchmail-6.4.13/env.c:42:18: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (!(user = getenv("FETCHMAILUSER"))) data/fetchmail-6.4.13/env.c:44: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. if (!(user = getenv("LOGNAME"))) data/fetchmail-6.4.13/env.c:46: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. user = getenv("USER"); data/fetchmail-6.4.13/env.c:55:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("QMAILINJECT") && strcmp(getenv("QMAILINJECT"), "")) data/fetchmail-6.4.13/env.c:55:41: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("QMAILINJECT") && strcmp(getenv("QMAILINJECT"), "")) data/fetchmail-6.4.13/env.c:67:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("NULLMAILER_FLAGS") && strcmp(getenv("NULLMAILER_FLAGS"), "")) data/fetchmail-6.4.13/env.c:67:46: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("NULLMAILER_FLAGS") && strcmp(getenv("NULLMAILER_FLAGS"), "")) data/fetchmail-6.4.13/env.c:126: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_ETC"); data/fetchmail-6.4.13/env.c:128: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. home = getenv("HOME"); data/fetchmail-6.4.13/env.c:149: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. fmhome = getenv("FETCHMAILHOME"); data/fetchmail-6.4.13/fm_realpath.c:24:7: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. rv = realpath(file_name, NULL); data/fetchmail-6.4.13/fm_realpath.c:32:8: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. rv = realpath(file_name, b); data/fetchmail-6.4.13/getopt.c:179:7: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *getenv (); data/fetchmail-6.4.13/getopt.c:297: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/fetchmail-6.4.13/getopt.c:680: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/fetchmail-6.4.13/getopt.c:710: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/fetchmail-6.4.13/getopt.h:102: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/fetchmail-6.4.13/getopt.h:104: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/fetchmail-6.4.13/getopt.h:106: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/fetchmail-6.4.13/getopt.h:118: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/fetchmail-6.4.13/getopt.h:119: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/fetchmail-6.4.13/getopt1.c:51:7: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *getenv (); data/fetchmail-6.4.13/getopt1.c:59: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/fetchmail-6.4.13/getopt1.c:115: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/fetchmail-6.4.13/options.c:266:10: [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,shortoptions, data/fetchmail-6.4.13/pop3.c:308:25: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (peek_capable && getenv("FETCHMAIL_POP3_FORCE_RETR")) { data/fetchmail-6.4.13/rfc822.c:430:18: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((ch = getopt(argc, argv, "rv")) != EOF) data/fetchmail-6.4.13/rpa.c:717:42: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. buf[i] = devrandom ? fgetc(devrandom) : random(); data/fetchmail-6.4.13/socket.c:1133:18: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *tmp = getenv("FETCHMAIL_DISABLE_CBC_IV_COUNTERMEASURE"); data/fetchmail-6.4.13/socket.c:1161: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. tmp = getenv("FETCHMAIL_INCLUDE_DEFAULT_X509_CA_CERTS"); data/fetchmail-6.4.13/KAME/getnameinfo.c:126:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char numserv[512]; data/fetchmail-6.4.13/KAME/getnameinfo.c:127:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char numaddr[512]; data/fetchmail-6.4.13/KAME/getnameinfo.c:319:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char numaddr[512]; data/fetchmail-6.4.13/KAME/getnameinfo.c:330: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 zonebuf[MAXHOSTNAMELEN]; data/fetchmail-6.4.13/KAME/getnameinfo.c:342:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(host + numaddrlen + 1, zonebuf, data/fetchmail-6.4.13/beos/beos_nameser.h:179:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[NS_MAXDNAME]; /* XXX need to malloc */ data/fetchmail-6.4.13/beos/beos_nameser.h:284: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 name[NS_MAXDNAME], alg[NS_MAXDNAME]; data/fetchmail-6.4.13/beos/beos_nameser.h:297:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sig[NS_PACKETSZ]; data/fetchmail-6.4.13/checkalias.c:29: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. typedef unsigned char address_t[sizeof (struct in_addr)]; data/fetchmail-6.4.13/conf.c:335: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 namebuf[USERNAMELEN + 1]; data/fetchmail-6.4.13/cram.c:25: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 ipad[64]; data/fetchmail-6.4.13/cram.c:26: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 opad[64]; data/fetchmail-6.4.13/cram.c:27: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 hash_passwd[16]; data/fetchmail-6.4.13/cram.c:44: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 (ipad, password, pass_len); data/fetchmail-6.4.13/cram.c:45: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 (opad, password, pass_len); data/fetchmail-6.4.13/cram.c:68:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf1[1024]; data/fetchmail-6.4.13/cram.c:69:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg_id[768]; data/fetchmail-6.4.13/cram.c:70: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 response[16]; data/fetchmail-6.4.13/cram.c:71:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char reply[1024]; data/fetchmail-6.4.13/daemon.c:185:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open("/dev/tty", O_RDWR)) >= 0) { data/fetchmail-6.4.13/daemon.c:211:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (open("/dev/null", O_RDWR) < 0) { /* stdin */ data/fetchmail-6.4.13/daemon.c:218:20: [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 ((logfd = open(logfile, O_CREAT|O_WRONLY|O_APPEND, 0666)) < 0) { /* stdout */ data/fetchmail-6.4.13/driver.c:369:13: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). size = atoi(current->id); data/fetchmail-6.4.13/driver.c:397:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sizestr[32]; data/fetchmail-6.4.13/driver.c:950:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[MSGBUFSIZE+1], *realhost; data/fetchmail-6.4.13/driver.c:1057: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(ctl->server.trueaddr, res->ai_addr, res->ai_addrlen); data/fetchmail-6.4.13/driver.c:1072: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[BUFSIZ]; data/fetchmail-6.4.13/env.c:88: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(&by_uid, pwp, sizeof(struct passwd)); data/fetchmail-6.4.13/env.c:97: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(&by_name, pwp, sizeof(struct passwd)); data/fetchmail-6.4.13/env.c:195:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmpbuf[HOSTLEN+1]; data/fetchmail-6.4.13/env.c:246:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char offset_string[6]; data/fetchmail-6.4.13/env.c:277:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[50]; data/fetchmail-6.4.13/env.c:297: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(strstr(buf, "XXXXX"), tzoffset(&now), 5); data/fetchmail-6.4.13/etrn.c:41:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf [MSGBUFSIZE+1]; data/fetchmail-6.4.13/etrn.c:75: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). switch(atoi(buf)) data/fetchmail-6.4.13/etrn.c:110:53: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). report(stderr, GT_("Unknown ETRN error %d\n"), atoi(buf)); data/fetchmail-6.4.13/fetchmail.h:388:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char lastdigest[DIGESTLEN]; /* last MD5 hash seen on this connection */ data/fetchmail-6.4.13/fetchmail.h:393: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 digest[DIGESTLEN]; /* md5 digest buffer */ data/fetchmail-6.4.13/fetchmail.h: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 return_path[HOSTLEN + USERNAMELEN + 4]; /**< envelope sender */ data/fetchmail-6.4.13/fetchmail.h:432:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char tag[TAGLEN]; data/fetchmail-6.4.13/fetchmail.h:466:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char shroud[PASSWORDLEN*2+3]; /* string to shroud in debug output */ data/fetchmail-6.4.13/fetchmail.h:520:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char prefix[100]; /**< prefix to match/repeat when splitting lines */ data/fetchmail-6.4.13/fetchmail.h:522:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[MSGBUFSIZE]; /**< buffer for cached data */ data/fetchmail-6.4.13/fetchmail.h:674:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char currentwd[1024], rcfiledir[1024]; data/fetchmail-6.4.13/fm_md5.h:20:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char in[64]; data/fetchmail-6.4.13/getpass.c:78:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char pbuf[INPUT_BUF_SIZE]; data/fetchmail-6.4.13/getpass.c:86:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fi = fdopen(open("/dev/tty", 2), "r")) == NULL) data/fetchmail-6.4.13/gettext.h:218: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 msg_ctxt_id[msgctxt_len + msgid_len]; data/fetchmail-6.4.13/gettext.h:220: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[1024]; data/fetchmail-6.4.13/gettext.h:229: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 (msg_ctxt_id, msgctxt, msgctxt_len - 1); data/fetchmail-6.4.13/gettext.h:231: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 (msg_ctxt_id + msgctxt_len, msgid, msgid_len); data/fetchmail-6.4.13/gettext.h:266: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 msg_ctxt_id[msgctxt_len + msgid_len]; data/fetchmail-6.4.13/gettext.h:268: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[1024]; data/fetchmail-6.4.13/gettext.h:277: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 (msg_ctxt_id, msgctxt, msgctxt_len - 1); data/fetchmail-6.4.13/gettext.h:279: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 (msg_ctxt_id + msgctxt_len, msgid, msgid_len); data/fetchmail-6.4.13/gssapi.c:142:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[8192], buf2[8192], server_conf_flags; data/fetchmail-6.4.13/gssapi.c:270: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(buf1, &buf_size, 4); data/fetchmail-6.4.13/idlist.c:227: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(newnode, idl, sizeof(struct idlist)); data/fetchmail-6.4.13/imap.c:36:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char capabilities[MSGBUFSIZE+1]; data/fetchmail-6.4.13/imap.c:133:16: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). recentcount = atoi(buf+2); data/fetchmail-6.4.13/imap.c:192:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[MSGBUFSIZE+1]; data/fetchmail-6.4.13/imap.c:396:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/fetchmail-6.4.13/imap.c:773:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[MSGBUFSIZE+1], *cp; data/fetchmail-6.4.13/imap.c:1008:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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 [MSGBUFSIZE+1]; data/fetchmail-6.4.13/imap.c:1128:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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 [MSGBUFSIZE+1]; data/fetchmail-6.4.13/imap.c:1193:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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 [MSGBUFSIZE+1], *cp; data/fetchmail-6.4.13/interface.c:106:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *cp, buffer[256]; data/fetchmail-6.4.13/interface.c:169:21: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *stats_file = fopen("/proc/net/dev", "r"); data/fetchmail-6.4.13/interface.c:230:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tname[16]; data/fetchmail-6.4.13/interface.c:231:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char iname[16]; data/fetchmail-6.4.13/interface.c:384:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char iname[16]; data/fetchmail-6.4.13/interface.c:573: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(inp, &addr, sizeof(addr)); data/fetchmail-6.4.13/kerberos.c:39:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf1[4096], buf2[4096]; data/fetchmail-6.4.13/kerberos.c:42: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 cstr[4]; data/fetchmail-6.4.13/kerberos.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 srvinst[INST_SZ]; data/fetchmail-6.4.13/kerberos.c:46:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char srvrealm[REALM_SZ]; data/fetchmail-6.4.13/kerberos.c:49:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tktuser[MAX_K_NAME_SZ+1+INST_SZ+1+REALM_SZ+1]; data/fetchmail-6.4.13/kerberos.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 tktinst[INST_SZ]; data/fetchmail-6.4.13/kerberos.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 tktrealm[REALM_SZ]; data/fetchmail-6.4.13/kerberos.c:81:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[4]; data/fetchmail-6.4.13/kerberos.c:84:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(challenge1.cstr, tmp, sizeof(tmp)); data/fetchmail-6.4.13/kerberos.c:120: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(session, credentials.session, sizeof session); data/fetchmail-6.4.13/kerberos.c:167: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(buf1, "\r\n"); data/fetchmail-6.4.13/kerberos.c:216: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(challenge2.cstr, buf2, 4); data/fetchmail-6.4.13/kerberos.c:225: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(authenticator.dat, &result, sizeof result); data/fetchmail-6.4.13/libesmtp/getaddrinfo.c:58:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (ret, info, sizeof (struct addrinfo)); data/fetchmail-6.4.13/libesmtp/getaddrinfo.c:65:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (ret->ai_addr, addr, addrlen); data/fetchmail-6.4.13/libesmtp/getaddrinfo.c:222: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 (&((struct sockaddr_in *) &sa)->sin_addr, data/fetchmail-6.4.13/libesmtp/getaddrinfo.c:232: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 (&((struct sockaddr_in6 *) &sa)->sin6_addr, data/fetchmail-6.4.13/lock.c:81:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((lockfp = fopen(lockfile, "r")) != NULL) data/fetchmail-6.4.13/lock.c:145:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmpbuf[50]; data/fetchmail-6.4.13/lock.c:150:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(lockfile, O_WRONLY|O_CREAT|O_EXCL, 0666); data/fetchmail-6.4.13/lock.c:152:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(lockfile, O_WRONLY|O_TRUNC, 0666); data/fetchmail-6.4.13/md5ify.c:27: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 digest[16]; data/fetchmail-6.4.13/md5ify.c:28: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 ascii_digest [33]; data/fetchmail-6.4.13/md5ify.c:35:5: [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(ascii_digest+2*i, "%02x", digest[i]); data/fetchmail-6.4.13/mxget.c: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 answer[PACKETSZ], *eom, *cp, *bp; data/fetchmail-6.4.13/mxget.c:65:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char MXHostBuf[PACKETSZ - HFIXEDSZ]; data/fetchmail-6.4.13/netrc.c:83:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[POPBUFSIZE+1], *p, *tok; data/fetchmail-6.4.13/netrc.c:96: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/fetchmail-6.4.13/ntlm.h:19: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 ident[8]; data/fetchmail-6.4.13/ntlm.h:30:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ident[8]; data/fetchmail-6.4.13/ntlm.h:44: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 ident[8]; data/fetchmail-6.4.13/ntlmsubr.c:27:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msgbuf[2048]; data/fetchmail-6.4.13/ntlmsubr.c:52: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(msgbuf,"\r\n"); data/fetchmail-6.4.13/ntlmsubr.c:103: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(msgbuf,"\r\n"); data/fetchmail-6.4.13/odmr.c:53:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf [MSGBUFSIZE+1]; data/fetchmail-6.4.13/odmr.c:101:12: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). switch(atoi(buf)) data/fetchmail-6.4.13/opie.c:33:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[128]; data/fetchmail-6.4.13/opie.c:34:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char challenge[OPIE_CHALLENGE_MAX+1+8]; data/fetchmail-6.4.13/opie.c:35:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char response[OPIE_RESPONSE_MAX+1]; data/fetchmail-6.4.13/opie.c:64:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char secret[OPIE_SECRET_MAX+1]; data/fetchmail-6.4.13/options.c:229:12: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return atoi(dp); data/fetchmail-6.4.13/pop2.c:28:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf [POPBUFSIZE+1]; data/fetchmail-6.4.13/pop2.c:38:18: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). pound_arg = atoi(buf+1); data/fetchmail-6.4.13/pop2.c:43:18: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). equal_arg = atoi(buf+1); data/fetchmail-6.4.13/pop3.c:42:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char lastok[POPBUFSIZE+1]; data/fetchmail-6.4.13/pop3.c:90:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msgbuf[POPBUFSIZE+1]; data/fetchmail-6.4.13/pop3.c:115:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf [POPBUFSIZE+1]; data/fetchmail-6.4.13/pop3.c:224:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[64]; data/fetchmail-6.4.13/pop3.c:359: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[10]; data/fetchmail-6.4.13/pop3.c:579:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char response[OPIE_RESPONSE_MAX+1]; data/fetchmail-6.4.13/pop3.c:586: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 secret[OPIE_SECRET_MAX+1]; data/fetchmail-6.4.13/pop3.c:733:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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]; data/fetchmail-6.4.13/pop3.c:784:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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]; data/fetchmail-6.4.13/pop3.c:805:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char id [IDLEN+1]; data/fetchmail-6.4.13/pop3.c:880:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char id [IDLEN+1]; data/fetchmail-6.4.13/pop3.c:964:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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]; data/fetchmail-6.4.13/pop3.c:1001:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char id [IDLEN+1]; data/fetchmail-6.4.13/pop3.c:1125:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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]; data/fetchmail-6.4.13/pop3.c:1155:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf [POPBUFSIZE+1]; data/fetchmail-6.4.13/pop3.c:1185:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char id [IDLEN+1]; data/fetchmail-6.4.13/pop3.c:1223:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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]; data/fetchmail-6.4.13/pop3.c:1251:7: [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(buf, "<>"); data/fetchmail-6.4.13/rcfile_l.c:2349:19: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). { yylval.number = atoi(yytext); return NUMBER; } data/fetchmail-6.4.13/rcfile_y.c:119: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 currentwd[1024] = "", rcfiledir[1024] = ""; data/fetchmail-6.4.13/rcfile_y.c:1352: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 const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; data/fetchmail-6.4.13/rcfile_y.c:1557: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/fetchmail-6.4.13/rcfile_y.c:2020: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[10]; data/fetchmail-6.4.13/rcfile_y.c:2031: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[10]; data/fetchmail-6.4.13/rcfile_y.c:2926: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). else if ((yyin = fopen(pathname,"r")) == (FILE *)NULL) { data/fetchmail-6.4.13/rcfile_y.c:2984:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(node, init, sizeof(struct query)); data/fetchmail-6.4.13/rfc2047e.c:72: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(t, "=%02X", (unsigned int)((unsigned char)*u)); data/fetchmail-6.4.13/rfc2047e.c:76: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(t, "?="); data/fetchmail-6.4.13/rfc2047e.c:116: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(words[idx], r, l); data/fetchmail-6.4.13/rfc2047e.c:123: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(words[idx], r, l); data/fetchmail-6.4.13/rfc822.c:159: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(from, host, hostlen); data/fetchmail-6.4.13/rfc822.c:202: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(from, host, hostlen); data/fetchmail-6.4.13/rfc822.c:234:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char address[BUFSIZ]; data/fetchmail-6.4.13/rfc822.c:426:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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], longbuf[BUFSIZ]; data/fetchmail-6.4.13/rfc822valid.c:136:59: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. printf("%s: %s\n", argv[i], rfc822_valid_msgid((unsigned char *)argv[i]) ? "OK" : "INVALID"); data/fetchmail-6.4.13/rpa.c:77: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. unsigned char Cs[256]; /* Service challenge */ data/fetchmail-6.4.13/rpa.c:79: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. unsigned char Ts[Tsl+1]; /* Timestamp incl \0 */ data/fetchmail-6.4.13/rpa.c:80: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. unsigned char Nu[STRMAX]; /* Username in Unicode */ data/fetchmail-6.4.13/rpa.c:82: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. unsigned char Ns[STRMAX]; /* Service in Unicode */ data/fetchmail-6.4.13/rpa.c:84: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. unsigned char Nr[STRMAX]; /* Realm in Unicode */ data/fetchmail-6.4.13/rpa.c:86: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. unsigned char Pu[Pul]; /* Passphrase after MD5 */ data/fetchmail-6.4.13/rpa.c:87: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. unsigned char Cu[Cul]; /* User challenge */ data/fetchmail-6.4.13/rpa.c:88: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. unsigned char Ru[Rul]; /* User response */ data/fetchmail-6.4.13/rpa.c:89: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. unsigned char Au[Aul]; /* User auth from Deity */ data/fetchmail-6.4.13/rpa.c:90: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. unsigned char Kusu[Kusl]; /* Obscured Session key */ data/fetchmail-6.4.13/rpa.c:91: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. unsigned char Kus[Kusl]; /* Session key */ data/fetchmail-6.4.13/rpa.c:115:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf [POPBUFSIZE]; data/fetchmail-6.4.13/rpa.c:152: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(bufp, MECH, 11); bufp += 11; data/fetchmail-6.4.13/rpa.c:153: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(bufp, EARLYVER, 2); bufp += 2; data/fetchmail-6.4.13/rpa.c:154: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(bufp, LATEVER, 2); bufp += 2; data/fetchmail-6.4.13/rpa.c:155: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(bufp, FLAGS, 2); bufp += 2; data/fetchmail-6.4.13/rpa.c:187: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(Cs, bufp, Csl); data/fetchmail-6.4.13/rpa.c:196: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(Ts, bufp, Tsl); data/fetchmail-6.4.13/rpa.c:222: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(bufp, MECH, 11); bufp += 11; data/fetchmail-6.4.13/rpa.c:225: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(bufp,userid,strlen(userid)); bufp += strlen(userid); data/fetchmail-6.4.13/rpa.c:228: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(bufp, Cu, Cul); bufp += Cul; data/fetchmail-6.4.13/rpa.c:231: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(bufp, Ru, Rul); bufp += Rul; data/fetchmail-6.4.13/rpa.c:266:23: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (aulin == Aul) memcpy(Au, bufp, Aul); data/fetchmail-6.4.13/rpa.c:269:25: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (kuslin == Kusl) memcpy(Kusu, bufp, Kusl); /* blinded */ data/fetchmail-6.4.13/rpa.c:367:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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]; data/fetchmail-6.4.13/rpa.c:706:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). devrandom = fopen("/dev/urandom","rb"); data/fetchmail-6.4.13/rpa.c:754: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 workarea[STRMAX]; data/fetchmail-6.4.13/rpa.c:785: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 workarea[Pul+48+STRMAX*5+Tsl+Pul]; data/fetchmail-6.4.13/rpa.c:788:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p , Pu, Pul); p += Pul; data/fetchmail-6.4.13/rpa.c:790:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p , Nu, Nul); p += Nul; data/fetchmail-6.4.13/rpa.c:791:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p , Ns, Nsl); p += Nsl; data/fetchmail-6.4.13/rpa.c:792:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p , Nr, Nrl); p += Nrl; data/fetchmail-6.4.13/rpa.c:793:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p , Cu, Cul); p += Cul; data/fetchmail-6.4.13/rpa.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(p , Cs, Csl); p += Csl; data/fetchmail-6.4.13/rpa.c:795:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p , Ts, Tsl); p += Tsl; data/fetchmail-6.4.13/rpa.c:796:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p , Pu, Pul); p += Pul; data/fetchmail-6.4.13/rpa.c:817: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 workarea[Pul+48+STRMAX*7+Tsl+Pul]; data/fetchmail-6.4.13/rpa.c:819: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 md5ans[16]; data/fetchmail-6.4.13/rpa.c:823:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p , Pu, Pul); p += Pul; data/fetchmail-6.4.13/rpa.c:825:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p , Ns, Nsl); p += Nsl; data/fetchmail-6.4.13/rpa.c:826:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p , Nu, Nul); p += Nul; data/fetchmail-6.4.13/rpa.c:827:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p , Nr, Nrl); p += Nrl; data/fetchmail-6.4.13/rpa.c:828:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p , Cs, Csl); p += Csl; data/fetchmail-6.4.13/rpa.c:829:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p , Cu, Cul); p += Cul; data/fetchmail-6.4.13/rpa.c:830:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p , Ts, Tsl); p += Tsl; data/fetchmail-6.4.13/rpa.c:831:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p , Pu, Pul); p += Pul; data/fetchmail-6.4.13/rpa.c:836:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p , Pu, Pul); p += Pul; data/fetchmail-6.4.13/rpa.c:838:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p , Ns, Nsl); p += Nsl; data/fetchmail-6.4.13/rpa.c:839:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p , Nu, Nul); p += Nul; data/fetchmail-6.4.13/rpa.c:840:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p , Nr, Nrl); p += Nrl; data/fetchmail-6.4.13/rpa.c:841:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p , Kusu,Kusl);p += Kusl; data/fetchmail-6.4.13/rpa.c:842:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p , Cs, Csl); p += Csl; data/fetchmail-6.4.13/rpa.c:843:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p , Cu, Cul); p += Cul; data/fetchmail-6.4.13/rpa.c:844:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p , Ts, Tsl); p += Tsl; data/fetchmail-6.4.13/rpa.c:845:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p , Kus, Kusl);p += Kusl; data/fetchmail-6.4.13/rpa.c:846:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p , Pu, Pul); p += Pul; data/fetchmail-6.4.13/sdump.c:39:12: [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. oi += sprintf(oi, "\\x%02X", (unsigned char)in[i]); data/fetchmail-6.4.13/sink.c:248:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char addr[HOSTLEN+USERNAMELEN+1000]; data/fetchmail-6.4.13/sink.c:270:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char daemon_name[15 + HOSTLEN] = "MAILER-DAEMON@"; data/fetchmail-6.4.13/sink.c:271:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char boundary[BUFSIZ]; data/fetchmail-6.4.13/sink.c:443:19: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int smtperr = atoi(smtp_response); data/fetchmail-6.4.13/sink.c:444:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *responses[1]; data/fetchmail-6.4.13/sink.c:479: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 rejmsg[160]; data/fetchmail-6.4.13/sink.c:578:19: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int smtperr = atoi(smtp_response); data/fetchmail-6.4.13/sink.c:711:11: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). sinkfp = fopen(ctl->bsmtp, "a"); data/fetchmail-6.4.13/sink.c:825:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char options[MSGBUFSIZE]; data/fetchmail-6.4.13/sink.c:826:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char addr[HOSTLEN+USERNAMELEN+1000]; data/fetchmail-6.4.13/sink.c:840:6: [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(options, " BODY=8BITMIME"); data/fetchmail-6.4.13/sink.c:842:6: [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(options, " BODY=7BIT"); data/fetchmail-6.4.13/sink.c:846: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(options + strlen(options), " SIZE=%d", msg->reallen); data/fetchmail-6.4.13/sink.c:1450:7: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (atoi(smtp_response) == 503) data/fetchmail-6.4.13/sink.c:1588:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[3*MSGBUFSIZE+4]; data/fetchmail-6.4.13/smbbyteorder.h:135:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. #define CVAL(buf,pos) (((unsigned char *)(buf))[pos]) data/fetchmail-6.4.13/smbdes.c:50:24: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. #define uchar unsigned char data/fetchmail-6.4.13/smbdes.c:160:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char out[64]; data/fetchmail-6.4.13/smbdes.c:186:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pk1[56]; data/fetchmail-6.4.13/smbdes.c:187:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char c[28]; data/fetchmail-6.4.13/smbdes.c:188:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char d[28]; data/fetchmail-6.4.13/smbdes.c:189:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cd[56]; data/fetchmail-6.4.13/smbdes.c:190:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ki[16][48]; data/fetchmail-6.4.13/smbdes.c:191:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pd1[64]; data/fetchmail-6.4.13/smbdes.c:192:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char l[32], r[32]; data/fetchmail-6.4.13/smbdes.c:193:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rl[64]; data/fetchmail-6.4.13/smbdes.c:218: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 er[48]; data/fetchmail-6.4.13/smbdes.c:219: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 erk[48]; data/fetchmail-6.4.13/smbdes.c:220: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 b[8][6]; data/fetchmail-6.4.13/smbdes.c:221: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 cb[32]; data/fetchmail-6.4.13/smbdes.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 pcb[32]; data/fetchmail-6.4.13/smbdes.c:223: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 r2[32]; data/fetchmail-6.4.13/smbdes.c:283:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char outb[64]; data/fetchmail-6.4.13/smbdes.c:284:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char inb[64]; data/fetchmail-6.4.13/smbdes.c:285:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char keyb[64]; data/fetchmail-6.4.13/smbdes.c:286:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char key2[8]; data/fetchmail-6.4.13/smbdes.c:310:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sp8[8] = {0x4b, 0x47, 0x53, 0x21, 0x40, 0x23, 0x24, 0x25}; data/fetchmail-6.4.13/smbdes.c:336:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[8]; data/fetchmail-6.4.13/smbdes.c:344:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[8]; data/fetchmail-6.4.13/smbdes.c:345:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char key2[8]; data/fetchmail-6.4.13/smbdes.c:354:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char key2[8]; data/fetchmail-6.4.13/smbdes.c:363: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 s_box[256]; data/fetchmail-6.4.13/smbencrypt.c:176: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(p21, passwd, 16); data/fetchmail-6.4.13/smbmd4.c:127:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[128]; data/fetchmail-6.4.13/smbmd4.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(buf, in, n); data/fetchmail-6.4.13/smbutil.c:34:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr->buffer+ptr->bufIndex, buf, count); \ data/fetchmail-6.4.13/smbutil.c:142:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf,p,len); data/fetchmail-6.4.13/smbutil.c:194: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(request->ident,"NTLMSSP\0\0\0",8); data/fetchmail-6.4.13/smbutil.c:221: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(response->ident,"NTLMSSP\0\0\0",8); data/fetchmail-6.4.13/smtp.c:41: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 smtp_response[MSGBUFSIZE]; data/fetchmail-6.4.13/smtp.c:68:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char b64buf[512]; data/fetchmail-6.4.13/smtp.c:69:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[512]; data/fetchmail-6.4.13/smtp.c:77: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 digest[16]; data/fetchmail-6.4.13/smtp.c:173: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 auth_response[511]; data/fetchmail-6.4.13/smtp.c:227:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[MSGBUFSIZE]; data/fetchmail-6.4.13/smtp.c:314:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char reply[MSGBUFSIZE], *i; data/fetchmail-6.4.13/smtp.h:48:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char smtp_response[MSGBUFSIZE]; data/fetchmail-6.4.13/socket.c:257:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[8192] = ""; data/fetchmail-6.4.13/socket.c:283:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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]; /* hostname */ data/fetchmail-6.4.13/socket.c:284:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pb[256]; /* service name */ data/fetchmail-6.4.13/socket.c:365:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[8192]; data/fetchmail-6.4.13/socket.c:632:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[257]; data/fetchmail-6.4.13/socket.c:635:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char digest[EVP_MAX_MD_SIZE]; data/fetchmail-6.4.13/socket.c:636:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[EVP_MAX_MD_SIZE * 3 + 1], *tp, *te; data/fetchmail-6.4.13/socket.c:1094:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[4]; data/fetchmail-6.4.13/socket.c:1222: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[256]; data/fetchmail-6.4.13/transact.c:54: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 tag[TAGLEN]; /**< buffer for the tag */ data/fetchmail-6.4.13/transact.c:57:17: [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. #define GENSYM (sprintf(tag, "A%04u", ++tagnum % TAGMOD), tag) data/fetchmail-6.4.13/transact.c:59: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 shroud[PASSWORDLEN*2+3]; /**< string to shroud in debug output */ data/fetchmail-6.4.13/transact.c:228:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char rbuf[HOSTLEN + USERNAMELEN + 4]; data/fetchmail-6.4.13/transact.c:432:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[MSGBUFSIZE+1]; data/fetchmail-6.4.13/transact.c:528: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(line + linelen - n, buf, n); data/fetchmail-6.4.13/transact.c:546: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(line + linelen - n, buf, n - 1); data/fetchmail-6.4.13/transact.c:563: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(line + linelen - n, buf, n + 1); data/fetchmail-6.4.13/transact.c:835: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. (void) memcpy(msgblk.headers, line, linelen); data/fetchmail-6.4.13/transact.c:852: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(msgblk.headers + oldlen, line, linelen); data/fetchmail-6.4.13/transact.c:998: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(ctl->lastdigest, ctl->digest, DIGESTLEN); data/fetchmail-6.4.13/transact.c:1208: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 saddr[50]; data/fetchmail-6.4.13/transact.c:1295:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char errhd[USERNAMELEN + POPBUFSIZE], *errmsg; data/fetchmail-6.4.13/transact.c:1339:4: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(errmsg, ", "); data/fetchmail-6.4.13/transact.c:1344: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(errmsg, "\r\n"); data/fetchmail-6.4.13/transact.c:1396:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[MSGBUFSIZE+4]; data/fetchmail-6.4.13/transact.c:1556:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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 [MSGBUFSIZE+1]; data/fetchmail-6.4.13/transact.c:1757:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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 [MSGBUFSIZE+1]; data/fetchmail-6.4.13/trio/regression.c:117:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[4096]; data/fetchmail-6.4.13/trio/regression.c:143: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[4096]; data/fetchmail-6.4.13/trio/regression.c:144: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 result[4096]; data/fetchmail-6.4.13/trio/regression.c:264: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[256]; data/fetchmail-6.4.13/trio/regression.c:354:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "%u", UINT_MAX); data/fetchmail-6.4.13/trio/regression.c:357:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "%x", UINT_MAX); data/fetchmail-6.4.13/trio/regression.c:713: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[256]; data/fetchmail-6.4.13/trio/regression.c:917: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[512]; data/fetchmail-6.4.13/trio/regression.c:1063: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[512]; data/fetchmail-6.4.13/trio/regression.c:1114: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[512]; data/fetchmail-6.4.13/trio/regression.c:1131: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[512]; data/fetchmail-6.4.13/trio/regression.c:1207: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 string[512]; data/fetchmail-6.4.13/trio/regression.c:1208: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[512]; data/fetchmail-6.4.13/trio/regression.c:1273: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[4096]; data/fetchmail-6.4.13/trio/regression.c:1329:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "1 %u", -42U); data/fetchmail-6.4.13/trio/regression.c:1335:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "SPQR"); data/fetchmail-6.4.13/trio/regression.c:1341:12: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). stream = tmpfile(); data/fetchmail-6.4.13/trio/regression.c:1350:12: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). stream = tmpfile(); data/fetchmail-6.4.13/trio/regression.c:1359:12: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). stream = tmpfile(); data/fetchmail-6.4.13/trio/regression.c:1396: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[512]; data/fetchmail-6.4.13/trio/regression.c:1538: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. const char no_terminate[5] = { 'h', 'e', 'l', 'l', 'o' }; data/fetchmail-6.4.13/trio/trio.c:815:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char namespace[MAX_USER_NAME]; data/fetchmail-6.4.13/trio/trio.c:818: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 user_data[MAX_USER_DATA]; data/fetchmail-6.4.13/trio/trio.c:926:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char internalDecimalPointString[MAX_LOCALE_SEPARATOR_LENGTH + 1] = "."; data/fetchmail-6.4.13/trio/trio.c:930:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char internalThousandSeparator[MAX_LOCALE_SEPARATOR_LENGTH + 1] = ","; data/fetchmail-6.4.13/trio/trio.c:931:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char internalGrouping[MAX_LOCALE_GROUPS] = { (char)NO_GROUPING }; data/fetchmail-6.4.13/trio/trio.c:941:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char internalCollationArray[MAX_CHARACTER_CLASS][MAX_CHARACTER_CLASS]; data/fetchmail-6.4.13/trio/trio.c:2256: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 *)(argarray[num]); data/fetchmail-6.4.13/trio/trio.c:2283:41: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. (trio_pointer_t)((char *)argarray[num]); data/fetchmail-6.4.13/trio/trio.c:2371:64: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. parameters[i].data.number.as_unsigned = (trio_uintmax_t)(*((char *)argarray[num])); data/fetchmail-6.4.13/trio/trio.c:2486: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[MAX_CHARS_IN(trio_uintmax_t) * (1 + MAX_LOCALE_SEPARATOR_LENGTH) + 1]; data/fetchmail-6.4.13/trio/trio.c:2824: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[MB_LEN_MAX + 1]; data/fetchmail-6.4.13/trio/trio.c:5794: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 first[2]; data/fetchmail-6.4.13/trio/trio.c:5795: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 second[2]; data/fetchmail-6.4.13/trio/trio.c:6324: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[MB_LEN_MAX + 1]; data/fetchmail-6.4.13/trio/trio.c:6474: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 doubleString[512]; data/fetchmail-6.4.13/trio/trio.c:6666: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[sizeof(internalNullString)]; data/fetchmail-6.4.13/trio/trio.c:6683: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. *target = &((char *)0)[number]; data/fetchmail-6.4.13/ucs/norm_charmap.c:41:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[16]; data/fetchmail-6.4.13/ucs/norm_charmap.c:85: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, "ISO-8859-\0\0", 12); data/fetchmail-6.4.13/ucs/norm_charmap.c:96: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, "WINDOWS-12\0\0", 13); data/fetchmail-6.4.13/uid.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 ((tmpfp = fopen(idfile, "r")) != (FILE *)NULL) data/fetchmail-6.4.13/uid.c:161:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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]; data/fetchmail-6.4.13/uid.c:315:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[20]; data/fetchmail-6.4.13/uid.c:492: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 ((tmpfp = fopen(newnam, "w")) != (FILE *)NULL) { data/fetchmail-6.4.13/uid_db.c:302:23: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. rec->id = (char *)memcpy(xmalloc(id_len + 1), id, id_len + 1); data/fetchmail-6.4.13/unmime.c:262:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char MultipartDelimiter[MAX_DELIM_LEN+3]; data/fetchmail-6.4.13/unmime.c:275: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(XferEncOfs, ENC8BIT, sizeof(ENC8BIT) - 1); data/fetchmail-6.4.13/unmime.c:470:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(MultipartDelimiter, "--"); data/fetchmail-6.4.13/unmime.c:526:7: [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(buf, "..\r\n"); data/fetchmail-6.4.13/unmime.c:677: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 fnam[100]; data/fetchmail-6.4.13/unmime.c:682:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd_orig = fopen(fnam, "w"); data/fetchmail-6.4.13/unmime.c:684:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd_conv = fopen(fnam, "w"); data/fetchmail-6.4.13/xmalloc.c:74:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, s, l); data/fetchmail-6.4.13/KAME/getnameinfo.c:168:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(sp->s_name) + 1 > servlen) data/fetchmail-6.4.13/KAME/getnameinfo.c:173:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(numserv) + 1 > servlen) data/fetchmail-6.4.13/KAME/getnameinfo.c:260:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(hp->h_name) + 1 > hostlen) { data/fetchmail-6.4.13/KAME/getnameinfo.c:324: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). numaddrlen = strlen(numaddr); data/fetchmail-6.4.13/KAME/getnameinfo.c:381:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return (strlen(p)); data/fetchmail-6.4.13/checkalias.c:127: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). namelen = strlen(name); data/fetchmail-6.4.13/checkalias.c:137: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(idl->id) >= namelen) data/fetchmail-6.4.13/checkalias.c:139: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). ep = name + (namelen - strlen(idl->id)); data/fetchmail-6.4.13/cram.c:90:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strip && strncmp(buf1, strip, strlen(strip)) == 0) data/fetchmail-6.4.13/cram.c:91: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). respdata += strlen(strip); data/fetchmail-6.4.13/cram.c:113:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). hmac_md5((unsigned char *)ctl->password, strlen(ctl->password), data/fetchmail-6.4.13/cram.c:114: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). (unsigned char *)msg_id, strlen (msg_id), data/fetchmail-6.4.13/cram.c:125: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). to64frombits (buf1, reply, strlen(reply), sizeof buf1); data/fetchmail-6.4.13/daemon.c:253:3: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(DEF_UMASK); data/fetchmail-6.4.13/daemon.c:255:3: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(022); data/fetchmail-6.4.13/driver.c:258: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). char *tt = sdump(t, strlen(t)); data/fetchmail-6.4.13/env.c:179: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). rcfile = (char *)xmalloc(strlen(fmhome) + sizeof(RCFILE_NAME) + 3); data/fetchmail-6.4.13/env.c:186: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). if (rcfile[strlen(rcfile) - 1] != '/') data/fetchmail-6.4.13/env.c:187: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(rcfile, "/"); data/fetchmail-6.4.13/env.c:189: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(rcfile, "."); data/fetchmail-6.4.13/env.c:305: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). buf[strlen(buf)-1] = '\0'; /* remove trailing \n */ data/fetchmail-6.4.13/env.c:346: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). needed = strlen(buf) * 5 + 1; /* worst case: HEX, plus NUL byte */ data/fetchmail-6.4.13/fetchmail.c:613: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 pplen = strlen(password_prompt) + strlen(ctl->remotename) + strlen(ctl->server.pollname) + 1; data/fetchmail-6.4.13/fetchmail.c:613: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). size_t pplen = strlen(password_prompt) + strlen(ctl->remotename) + strlen(ctl->server.pollname) + 1; data/fetchmail-6.4.13/fetchmail.c:613:70: [1] (buffer) strlen: Does not handle 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 pplen = strlen(password_prompt) + strlen(ctl->remotename) + strlen(ctl->server.pollname) + 1; data/fetchmail-6.4.13/fetchmail.c:683:5: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(0077); data/fetchmail-6.4.13/fetchmail.c:1104:6: [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 (rcfiledir, "/"); data/fetchmail-6.4.13/fetchmail.c:1501: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). memset(ctl->password, '\0', strlen(ctl->password)); data/fetchmail-6.4.13/getopt.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). extern int strlen (const char *); data/fetchmail-6.4.13/getopt.c:498:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (nameend - nextchar == strlen (p->name)) data/fetchmail-6.4.13/getopt.c:522: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/fetchmail-6.4.13/getopt.c:551: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/fetchmail-6.4.13/getopt.c:565: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/fetchmail-6.4.13/getopt.c:569: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/fetchmail-6.4.13/getpass.c:113:25: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). for (p = pbuf; (c = getc(fi))!='\n' && c!=EOF;) data/fetchmail-6.4.13/gettext.h:214: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). size_t msgctxt_len = strlen (msgctxt) + 1; data/fetchmail-6.4.13/gettext.h:215: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 msgid_len = strlen (msgid) + 1; data/fetchmail-6.4.13/gettext.h:262: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). size_t msgctxt_len = strlen (msgctxt) + 1; data/fetchmail-6.4.13/gettext.h:263: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 msgid_len = strlen (msgid) + 1; data/fetchmail-6.4.13/gssapi.c:82: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). buf1siz = strlen(service) + 1 + strlen(hostname) + 1; data/fetchmail-6.4.13/gssapi.c:82: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). buf1siz = strlen(service) + 1 + strlen(hostname) + 1; data/fetchmail-6.4.13/gssapi.c:86: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). request_buf.length = strlen(buf1) + 1; data/fetchmail-6.4.13/gssapi.c:158: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 (buf1[0] != '+' || strspn(buf1 + 1, " \t") < strlen(buf1 + 1)) { data/fetchmail-6.4.13/gssapi.c:278: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). request_buf.length = 4 + strlen(username); data/fetchmail-6.4.13/imap.c:238: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). (tag[0] != '\0' && strncmp(buf, tag, strlen(tag))); data/fetchmail-6.4.13/imap.c:325: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). for (i = 0; i < strlen(raw) && i < maxlen; i++) data/fetchmail-6.4.13/imap.c:400: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(name); data/fetchmail-6.4.13/imap.c:402: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). to64frombits (buf, name, strlen(name), sizeof buf); data/fetchmail-6.4.13/imap.c:644: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). rnl = 2 * strlen(ctl->remotename) + 1; data/fetchmail-6.4.13/imap.c:645: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). pwl = 2 * strlen(ctl->password) + 1; data/fetchmail-6.4.13/imap.c:656: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). memset(password, 0x55, strlen(password)); data/fetchmail-6.4.13/interface.c:104:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int namelen = strlen(ifname); data/fetchmail-6.4.13/interface.c:274: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). snprintf(tname + strlen(tname), sizeof(tname) - strlen(tname), "%d", ifnet.if_unit); data/fetchmail-6.4.13/interface.c:274: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). snprintf(tname + strlen(tname), sizeof(tname) - strlen(tname), "%d", ifnet.if_unit); data/fetchmail-6.4.13/interface.c:457:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!(strlen(iname) == sdl->sdl_nlen data/fetchmail-6.4.13/kerberos.c:168: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). SockWrite(sock, buf1, strlen(buf1)); data/fetchmail-6.4.13/kerberos.c:236: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(tktuser); data/fetchmail-6.4.13/kerberos.c:237:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((char *)authenticator.dat+8, tktuser, len); data/fetchmail-6.4.13/libesmtp/getaddrinfo.c:264: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). sai->ai_canonname = malloc (strlen (hp->h_name) + 1); data/fetchmail-6.4.13/lock.c:43:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). lockfile = (char *)xmalloc(strlen(PID_DIR) data/fetchmail-6.4.13/lock.c:44:5: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen(FETCHMAIL_PIDFILE) + 2); /* 2: "/" and NUL */ data/fetchmail-6.4.13/lock.c:46: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(lockfile, "/"); data/fetchmail-6.4.13/lock.c:49:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). lockfile = (char *)xmalloc(strlen(fmhome) data/fetchmail-6.4.13/lock.c:50:5: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen(FETCHMAIL_PIDFILE) + 3); /* 3: "/", "." and NUL */ data/fetchmail-6.4.13/lock.c:52: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(lockfile, "/"); data/fetchmail-6.4.13/lock.c:54: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(lockfile, "."); data/fetchmail-6.4.13/lock.c:158:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). wr = write(fd, tmpbuf, strlen(tmpbuf)); data/fetchmail-6.4.13/lock.c:159: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 (wr == -1 || (size_t)wr != strlen(tmpbuf)) data/fetchmail-6.4.13/lock.c:164: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). wr = write(fd, tmpbuf, strlen(tmpbuf)); data/fetchmail-6.4.13/lock.c:165:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (wr == -1 || (size_t)wr != strlen(tmpbuf)) data/fetchmail-6.4.13/md5ify.c:31: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). MD5Update(&context, s, strlen((const char *)s)); data/fetchmail-6.4.13/mxget.c:111: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). n = strlen((const char *)bp); data/fetchmail-6.4.13/netrc.c:113: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 char)*p); p--) data/fetchmail-6.4.13/netrc.c:316:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memset(a->password, 0x55, strlen(a->password)); data/fetchmail-6.4.13/ntlmsubr.c:33:55: [1] (buffer) strlen: Does not handle 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 (msgbuf[0] != '+' && strspn(msgbuf+1, " \t") < strlen(msgbuf+1)) { data/fetchmail-6.4.13/ntlmsubr.c:53: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). SockWrite (sock, msgbuf, strlen (msgbuf)); data/fetchmail-6.4.13/ntlmsubr.c:104: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). SockWrite (sock, msgbuf, strlen (msgbuf)); data/fetchmail-6.4.13/odmr.c:86:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(buf) + strlen(qnp->id) + 1 >= sizeof(buf)) data/fetchmail-6.4.13/odmr.c:86:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(buf) + strlen(qnp->id) + 1 >= sizeof(buf)) data/fetchmail-6.4.13/odmr.c:91:6: [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(buf, ","); data/fetchmail-6.4.13/odmr.c:93: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). buf[strlen(buf) - 1] = '\0'; /* nuke final comma */ data/fetchmail-6.4.13/odmr.c:131: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 *t = sdump(buf, strlen(buf)); data/fetchmail-6.4.13/opie.c:47: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). to64frombits(buffer, ctl->remotename, strlen(ctl->remotename), sizeof(buffer)); data/fetchmail-6.4.13/opie.c:74: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). to64frombits(buffer, response, strlen(response), sizeof(buffer)); data/fetchmail-6.4.13/options.c:207: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(s); data/fetchmail-6.4.13/pop3.c:667: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). msg = (char *)xmalloc((end-start+1) + strlen(ctl->password) + 1); data/fetchmail-6.4.13/pop3.c:1250:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strspn(buf, " \t") == strlen(buf)) data/fetchmail-6.4.13/pop3.c:1252: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). sdps_envfrom = (char *)xmalloc(strlen(buf)+1); data/fetchmail-6.4.13/pop3.c:1257:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sdps_envto = (char *)xmalloc(strlen(buf)+7); data/fetchmail-6.4.13/rcfile_l.c:1513:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ data/fetchmail-6.4.13/rcfile_l.c:3098: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). return yy_scan_bytes( yystr, (int) strlen(yystr) ); data/fetchmail-6.4.13/rcfile_y.c:1250: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). # define yystrlen(S) (YY_CAST (YYPTRDIFF_T, strlen (S))) data/fetchmail-6.4.13/rcfile_y.c:3025: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). newfile = (char *)xmalloc (strlen (dir) + 1 + strlen (file) + 1); data/fetchmail-6.4.13/rcfile_y.c:3025: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). newfile = (char *)xmalloc (strlen (dir) + 1 + strlen (file) + 1); data/fetchmail-6.4.13/rcfile_y.c:3026:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (dir[strlen(dir) - 1] != '/') data/fetchmail-6.4.13/rfc2047e.c:39:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strspn(string, noenc) < strlen(string)) data/fetchmail-6.4.13/rfc2047e.c:42: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). && strcmp(string + strlen(string) - 2, "?=") == 0) data/fetchmail-6.4.13/rfc2047e.c:54: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). l += strlen(words[i]) * 3; /* worst case, encode everything */ data/fetchmail-6.4.13/rfc2047e.c:55: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). l += (strlen(charset) + 8) * (l/60 + 1); data/fetchmail-6.4.13/rfc2047e.c:92: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). assert(strlen(charset) < 40); data/fetchmail-6.4.13/rfc2047e.c:156: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). l += strlen(words[idx]); data/fetchmail-6.4.13/rfc2047e.c:160: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). minlen = strlen(charset) + 7; data/fetchmail-6.4.13/rfc2047e.c:169: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). l = strlen(out); data/fetchmail-6.4.13/rfc2047e.c:175: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). m = strlen(words[i]); data/fetchmail-6.4.13/rfc2047e.c:189: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). l = strlen(tmp); data/fetchmail-6.4.13/rfc822.c:91: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). buf = (char *)xrealloc(buf, strlen(buf) + addresscount * (strlen(host) + 1) + 1); data/fetchmail-6.4.13/rfc822.c:91:63: [1] (buffer) strlen: Does not handle 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 = (char *)xrealloc(buf, strlen(buf) + addresscount * (strlen(host) + 1) + 1); data/fetchmail-6.4.13/rfc822.c:155: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). hostlen = strlen(host); data/fetchmail-6.4.13/rfc822.c:156:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (cp = from + strlen(from); cp >= from; --cp) data/fetchmail-6.4.13/rfc822.c:198: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). hostlen = strlen(host); data/fetchmail-6.4.13/rfc822.c:199: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). for (cp = from + strlen(from); cp >= from; --cp) data/fetchmail-6.4.13/rfc822.c:227: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). *length = strlen(buf); data/fetchmail-6.4.13/rpa.c:221: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). LenAppend(&bufp, 11+2+strlen(userid)+1+Cul+1+Rul ); data/fetchmail-6.4.13/rpa.c:224: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). *(bufp++) = strlen(userid); data/fetchmail-6.4.13/rpa.c:225: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). memcpy(bufp,userid,strlen(userid)); bufp += strlen(userid); data/fetchmail-6.4.13/rpa.c:225: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). memcpy(bufp,userid,strlen(userid)); bufp += strlen(userid); data/fetchmail-6.4.13/rpa.c:717:23: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). buf[i] = devrandom ? fgetc(devrandom) : random(); data/fetchmail-6.4.13/rpa.c:766: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). md5(rbuf,strlen(passphrase),rbuf); data/fetchmail-6.4.13/sink.c:281: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). strncasecmp(msg->return_path, md2, strlen(md2)) == 0) data/fetchmail-6.4.13/sink.c:402: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(error) > 9 && isdigit((unsigned char)error[4]) data/fetchmail-6.4.13/sink.c:421: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). SockWrite(sock, msg->headers, strlen(msg->headers)); data/fetchmail-6.4.13/sink.c:628: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). while ((last += strlen(last)) && (last[-1] != '\n')) data/fetchmail-6.4.13/sink.c:846: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). sprintf(options + strlen(options), " SIZE=%d", msg->reallen); data/fetchmail-6.4.13/sink.c:1093:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). length = strlen(ctl->mda); data/fetchmail-6.4.13/sink.c:1106: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). nameslen += (strlen(idp->id) + 1); /* string + ' ' */ data/fetchmail-6.4.13/sink.c:1108: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). nameslen = strlen(run.postmaster); data/fetchmail-6.4.13/sink.c:1120: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(names, " "); data/fetchmail-6.4.13/sink.c:1135: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). fromlen = strlen(from); data/fetchmail-6.4.13/sink.c:1604: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). vsnprintf(buf+strlen(buf), sizeof(buf)-strlen(buf)-2, fmt, ap); data/fetchmail-6.4.13/sink.c:1604: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). vsnprintf(buf+strlen(buf), sizeof(buf)-strlen(buf)-2, fmt, ap); data/fetchmail-6.4.13/sink.c:1607: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). snprintf(buf+strlen(buf), sizeof(buf)-strlen(buf), "\r\n"); data/fetchmail-6.4.13/sink.c:1607: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). snprintf(buf+strlen(buf), sizeof(buf)-strlen(buf), "\r\n"); data/fetchmail-6.4.13/smbbyteorder.h:99:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define RW_PCVAL(read,inbuf,outbuf,len) \ data/fetchmail-6.4.13/smbbyteorder.h:100:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). { if (read) { PCVAL (inbuf,0,outbuf,len); } \ data/fetchmail-6.4.13/smbbyteorder.h:103:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define RW_PIVAL(read,big_endian,inbuf,outbuf,len) \ data/fetchmail-6.4.13/smbbyteorder.h:104:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). { if (read) { if (big_endian) { RPIVAL(inbuf,0,outbuf,len); } else { PIVAL(inbuf,0,outbuf,len); } } \ data/fetchmail-6.4.13/smbbyteorder.h:107:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define RW_PSVAL(read,big_endian,inbuf,outbuf,len) \ data/fetchmail-6.4.13/smbbyteorder.h:108:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). { if (read) { if (big_endian) { RPSVAL(inbuf,0,outbuf,len); } else { PSVAL(inbuf,0,outbuf,len); } } \ data/fetchmail-6.4.13/smbbyteorder.h:111:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define RW_CVAL(read, inbuf, outbuf, offset) \ data/fetchmail-6.4.13/smbbyteorder.h:112:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). { if (read) { (outbuf) = CVAL (inbuf,offset); } \ data/fetchmail-6.4.13/smbbyteorder.h:115:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define RW_IVAL(read, big_endian, inbuf, outbuf, offset) \ data/fetchmail-6.4.13/smbbyteorder.h:116:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). { if (read) { (outbuf) = ((big_endian) ? RIVAL(inbuf,offset) : IVAL (inbuf,offset)); } \ data/fetchmail-6.4.13/smbbyteorder.h:119:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define RW_SVAL(read, big_endian, inbuf, outbuf, offset) \ data/fetchmail-6.4.13/smbbyteorder.h:120:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). { if (read) { (outbuf) = ((big_endian) ? RSVAL(inbuf,offset) : SVAL (inbuf,offset)); } \ data/fetchmail-6.4.13/smbbyteorder.h:226:49: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define DBG_RW_PCVAL(charmode,string,depth,base,read,inbuf,outbuf,len) \ data/fetchmail-6.4.13/smbbyteorder.h:227:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). { RW_PCVAL(read,inbuf,outbuf,len) \ data/fetchmail-6.4.13/smbbyteorder.h:234:49: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define DBG_RW_PSVAL(charmode,string,depth,base,read,big_endian,inbuf,outbuf,len) \ data/fetchmail-6.4.13/smbbyteorder.h:235:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). { RW_PSVAL(read,big_endian,inbuf,outbuf,len) \ data/fetchmail-6.4.13/smbbyteorder.h:242:49: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define DBG_RW_PIVAL(charmode,string,depth,base,read,big_endian,inbuf,outbuf,len) \ data/fetchmail-6.4.13/smbbyteorder.h:243:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). { RW_PIVAL(read,big_endian,inbuf,outbuf,len) \ data/fetchmail-6.4.13/smbbyteorder.h:250:39: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define DBG_RW_CVAL(string,depth,base,read,inbuf,outbuf) \ data/fetchmail-6.4.13/smbbyteorder.h:251:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). { RW_CVAL(read,inbuf,outbuf,0) \ data/fetchmail-6.4.13/smbbyteorder.h:255:39: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define DBG_RW_SVAL(string,depth,base,read,big_endian,inbuf,outbuf) \ data/fetchmail-6.4.13/smbbyteorder.h:256:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). { RW_SVAL(read,big_endian,inbuf,outbuf,0) \ data/fetchmail-6.4.13/smbbyteorder.h:260:39: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define DBG_RW_IVAL(string,depth,base,read,big_endian,inbuf,outbuf) \ data/fetchmail-6.4.13/smbbyteorder.h:261:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). { RW_IVAL(read,big_endian,inbuf,outbuf,0) \ data/fetchmail-6.4.13/smbencrypt.c:157:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen((char *)passwd); data/fetchmail-6.4.13/smbutil.c:49: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). if (p_) len_ = strlen(p_); \ data/fetchmail-6.4.13/smbutil.c:60:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len_ = strlen(p_); \ data/fetchmail-6.4.13/smbutil.c:121:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t l = strlen(p); data/fetchmail-6.4.13/smtp.c:100: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). hmac_md5((unsigned char *)password, strlen(password), data/fetchmail-6.4.13/smtp.c:101: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). (unsigned char *)b64buf, strlen(b64buf), digest, sizeof(digest)); data/fetchmail-6.4.13/smtp.c:109:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). to64frombits(b64buf, tmp, strlen(tmp), sizeof b64buf); data/fetchmail-6.4.13/smtp.c:119:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(tmp); data/fetchmail-6.4.13/smtp.c:147: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). to64frombits(b64buf, username, strlen(username), sizeof b64buf); data/fetchmail-6.4.13/smtp.c:162: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). to64frombits(b64buf, password, strlen(password), sizeof b64buf); data/fetchmail-6.4.13/smtp.c:193: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). n = strlen(smtp_response); data/fetchmail-6.4.13/smtp.c:204:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!strncasecmp(hp->name, smtp_response+4, strlen(hp->name))) { data/fetchmail-6.4.13/smtp.c:234: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). snprintf(buf+strlen(buf), sizeof(buf)-strlen(buf), "%s", opts); data/fetchmail-6.4.13/smtp.c:234: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). snprintf(buf+strlen(buf), sizeof(buf)-strlen(buf), "%s", opts); data/fetchmail-6.4.13/smtp.c:330: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). n = strlen(reply); data/fetchmail-6.4.13/socket.c:73:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define fm_read(a,b,c) read(a,b,c) data/fetchmail-6.4.13/socket.c:93: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). unsigned int plugin_len = strlen(plugin); data/fetchmail-6.4.13/socket.c:94: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). unsigned int host_len = strlen(host); data/fetchmail-6.4.13/socket.c:95:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). unsigned int service_len = strlen(service); data/fetchmail-6.4.13/socket.c:305: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). snprintf(errbuf+strlen(errbuf), sizeof(errbuf)-strlen(errbuf),\ data/fetchmail-6.4.13/socket.c:305: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). snprintf(errbuf+strlen(errbuf), sizeof(errbuf)-strlen(errbuf),\ data/fetchmail-6.4.13/socket.c:327: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). snprintf(errbuf+strlen(errbuf), sizeof(errbuf)-strlen(errbuf), GT_("name %d: connection to %s:%s [%s/%s] failed: %s.\n"), ord, host, service, buf, pb, strerror(e)); data/fetchmail-6.4.13/socket.c:327: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). snprintf(errbuf+strlen(errbuf), sizeof(errbuf)-strlen(errbuf), GT_("name %d: connection to %s:%s [%s/%s] failed: %s.\n"), ord, host, service, buf, pb, strerror(e)); data/fetchmail-6.4.13/socket.c:374: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). return SockWrite(sock, buf, strlen(buf)); data/fetchmail-6.4.13/socket.c:698:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((size_t)i > strlen(buf)) { data/fetchmail-6.4.13/socket.c:734:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((size_t)gn->d.ia5->length != strlen(pp1)) { data/fetchmail-6.4.13/socket.c:829:81: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). report(stderr, GT_("Broken certification chain at: %s\n"), (tmp = sdump(buf, strlen(buf)))); data/fetchmail-6.4.13/socket.c:841:88: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). report(stderr, GT_("Missing trust anchor certificate: %s\n"), (tmp = sdump(buf, strlen(buf)))); data/fetchmail-6.4.13/socket.c:1134:63: [1] (buffer) strlen: Does not handle 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 == NULL || *tmp == '\0' || strspn(tmp, " \t") == strlen(tmp)) data/fetchmail-6.4.13/socket.c:1209:68: [1] (buffer) strlen: Does not handle 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 (0 == (r = X509_VERIFY_PARAM_set1_host(param, servercname, strlen(servercname)))) { data/fetchmail-6.4.13/socket.c:1333:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((n = read(sock, bp, count)) == (size_t)-1) data/fetchmail-6.4.13/socket.c:1340:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). n2 = read(sock, bp + n, count - n); data/fetchmail-6.4.13/starttls.c:18: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). return (!ctl->sslproto || strlen(ctl->sslproto)) data/fetchmail-6.4.13/strlcat.c:52:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return(dlen + strlen(s)); data/fetchmail-6.4.13/transact.c:140:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int sl = strlen(ctl->server.qvirtual); data/fetchmail-6.4.13/transact.c:162: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). rhs = atsign + (strlen(atsign) - strlen(idp->id)); data/fetchmail-6.4.13/transact.c:162: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). rhs = atsign + (strlen(atsign) - strlen(idp->id)); data/fetchmail-6.4.13/transact.c:291: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). for (base = ok + 4 + strlen(rbuf); ; base = ok + 2) data/fetchmail-6.4.13/transact.c:350: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(rbuf) <= 3) /* apparently nothing has been found */ data/fetchmail-6.4.13/transact.c:365: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). char *lf = rbuf + strlen(rbuf)-1; data/fetchmail-6.4.13/transact.c:570:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (linelen != strlen (line)) data/fetchmail-6.4.13/transact.c:609:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (linelen != strlen (line)) data/fetchmail-6.4.13/transact.c:658:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (linelen != strlen (line)) data/fetchmail-6.4.13/transact.c:922:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(ctl->server.envelope))) data/fetchmail-6.4.13/transact.c:985:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). MD5Update(&context, (unsigned char *)msgblk.headers, strlen(msgblk.headers)); data/fetchmail-6.4.13/transact.c:1095: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). const char *tmps = delivered_to + 2 + strlen(ctl->server.envelope); data/fetchmail-6.4.13/transact.c:1237: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). snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), data/fetchmail-6.4.13/transact.c:1237: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). snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), data/fetchmail-6.4.13/transact.c:1242: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). snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), data/fetchmail-6.4.13/transact.c:1242: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). snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), data/fetchmail-6.4.13/transact.c:1246: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). snprintf(buf+strlen(buf), sizeof(buf)-strlen(buf), ")\r\n"); data/fetchmail-6.4.13/transact.c:1246: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). snprintf(buf+strlen(buf), sizeof(buf)-strlen(buf), ")\r\n"); data/fetchmail-6.4.13/transact.c:1264: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). snprintf(buf+strlen(buf), sizeof(buf)-strlen(buf)-1, data/fetchmail-6.4.13/transact.c:1264: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). snprintf(buf+strlen(buf), sizeof(buf)-strlen(buf)-1, data/fetchmail-6.4.13/transact.c:1271: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). snprintf(buf+strlen(buf), sizeof(buf)-strlen(buf), "%s\r\n", data/fetchmail-6.4.13/transact.c:1271: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). snprintf(buf+strlen(buf), sizeof(buf)-strlen(buf), "%s\r\n", data/fetchmail-6.4.13/transact.c:1308: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). snprintf(errhd+strlen(errhd), sizeof(errhd)-strlen(errhd), data/fetchmail-6.4.13/transact.c:1308: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). snprintf(errhd+strlen(errhd), sizeof(errhd)-strlen(errhd), data/fetchmail-6.4.13/transact.c:1316: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). snprintf(errhd+strlen(errhd), sizeof(errhd)-strlen(errhd), "; "); data/fetchmail-6.4.13/transact.c:1316: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). snprintf(errhd+strlen(errhd), sizeof(errhd)-strlen(errhd), "; "); data/fetchmail-6.4.13/transact.c:1317: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). snprintf(errhd+strlen(errhd), sizeof(errhd)-strlen(errhd), data/fetchmail-6.4.13/transact.c:1317: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). snprintf(errhd+strlen(errhd), sizeof(errhd)-strlen(errhd), data/fetchmail-6.4.13/transact.c:1324: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). snprintf(errhd+strlen(errhd), sizeof(errhd)-strlen(errhd), "; "); data/fetchmail-6.4.13/transact.c:1324: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). snprintf(errhd+strlen(errhd), sizeof(errhd)-strlen(errhd), "; "); data/fetchmail-6.4.13/transact.c:1325: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). snprintf(errhd+strlen(errhd), sizeof(errhd)-strlen(errhd), data/fetchmail-6.4.13/transact.c:1325: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). snprintf(errhd+strlen(errhd), sizeof(errhd)-strlen(errhd), data/fetchmail-6.4.13/transact.c:1327: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). errlen = strlen(errhd); data/fetchmail-6.4.13/transact.c:1330: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). errlen += strlen(idp->id) + 2; data/fetchmail-6.4.13/transact.c:1360:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((size_t)n == strlen(buf)) data/fetchmail-6.4.13/transact.c:1538: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). sp = cp + strlen(shroud); data/fetchmail-6.4.13/transact.c:1569: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). vsnprintf(buf + strlen(buf), sizeof(buf)-2-strlen(buf), fmt, ap); data/fetchmail-6.4.13/transact.c:1569:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). vsnprintf(buf + strlen(buf), sizeof(buf)-2-strlen(buf), fmt, ap); data/fetchmail-6.4.13/transact.c:1572: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). snprintf(buf+strlen(buf), sizeof(buf)-strlen(buf), "\r\n"); data/fetchmail-6.4.13/transact.c:1572: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). snprintf(buf+strlen(buf), sizeof(buf)-strlen(buf), "\r\n"); data/fetchmail-6.4.13/transact.c:1573: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). SockWrite(sock, buf, strlen(buf)); data/fetchmail-6.4.13/transact.c:1578: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). buf[strlen(buf)-2] = '\0'; data/fetchmail-6.4.13/transact.c:1608: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). n = strlen(buf); data/fetchmail-6.4.13/transact.c:1688:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(strlen(rs->prefix) + strlen(rs->buf) + 1 <= (size_t)size); data/fetchmail-6.4.13/transact.c:1688: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). assert(strlen(rs->prefix) + strlen(rs->buf) + 1 <= (size_t)size); data/fetchmail-6.4.13/transact.c:1695: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). n = strlen(buf); data/fetchmail-6.4.13/transact.c:1713: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). n = strlen(buf); data/fetchmail-6.4.13/transact.c:1723: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). || strncasecmp(buf, rs->prefix, strlen(rs->prefix)) /* mismatch in prefix */ data/fetchmail-6.4.13/transact.c:1725: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). || p < buf + strlen(rs->prefix)) /* space is at the wrong location */ data/fetchmail-6.4.13/transact.c:1773: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). vsnprintf(buf + strlen(buf), sizeof(buf)-2-strlen(buf), fmt, ap); data/fetchmail-6.4.13/transact.c:1773:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). vsnprintf(buf + strlen(buf), sizeof(buf)-2-strlen(buf), fmt, ap); data/fetchmail-6.4.13/transact.c:1776: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). snprintf(buf+strlen(buf), sizeof(buf)-strlen(buf), "\r\n"); data/fetchmail-6.4.13/transact.c:1776: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). snprintf(buf+strlen(buf), sizeof(buf)-strlen(buf), "\r\n"); data/fetchmail-6.4.13/transact.c:1777: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). ok = SockWrite(sock, buf, strlen(buf)); data/fetchmail-6.4.13/transact.c:1778:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (ok == -1 || (size_t)ok != strlen(buf)) { data/fetchmail-6.4.13/transact.c:1786: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). buf[strlen(buf)-2] = '\0'; data/fetchmail-6.4.13/trio/trio.c:246:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int read(int handle, char *buffer, unsigned int length); data/fetchmail-6.4.13/trio/trio.c:250:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define read _read data/fetchmail-6.4.13/trio/trio.c:7154:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). self->current = fgetc(file); data/fetchmail-6.4.13/trio/trio.c:7205:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). size = read(fd, &input, sizeof(char)); data/fetchmail-6.4.13/trio/triostr.c:368: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). return strlen(string); data/fetchmail-6.4.13/trio/triostr.c:462:7: [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(target, source, max - length - 1); data/fetchmail-6.4.13/trio/triostr.c:553:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void)strncpy(target, source, max - 1); data/fetchmail-6.4.13/uid.c:288: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). char *t = sdump(idp->id, strlen(idp->id)-1); data/fetchmail-6.4.13/uid.c:484: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). char *newnam = (char *)xmalloc(strlen(idfile) + 2); data/fetchmail-6.4.13/uid.c:487: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(newnam, "_"); data/fetchmail-6.4.13/uid.c:491:14: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). old_umask = umask(S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH | S_IXOTH); data/fetchmail-6.4.13/uid.c:535:8: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). (void)umask(old_umask); data/fetchmail-6.4.13/uid_db.c:301: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). id_len = strlen(id); data/fetchmail-6.4.13/uid_db.c:424: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(id); data/fetchmail-6.4.13/unmime.c:101: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). i = strlen(p_in); /* How much left */ data/fetchmail-6.4.13/unmime.c:139:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (p == NULL) p = p_in + strlen(p_in); data/fetchmail-6.4.13/unmime.c:327:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return (p1 && strlen(p1)) ? p1 : NULL; data/fetchmail-6.4.13/unmime.c:357: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). (strncasecmp(p, DecodedTypes[i], strlen(DecodedTypes[i])))); data/fetchmail-6.4.13/unmime.c:434: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 (p == NULL) p = NxtHdr + strlen(NxtHdr); data/fetchmail-6.4.13/unmime.c:539: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). n = strlen(p_in); data/fetchmail-6.4.13/unmime.c:628: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). *bufp = (buf + strlen(buf)); data/fetchmail-6.4.13/unmime.c:633: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). (strncmp(buf, MultipartDelimiter, strlen(MultipartDelimiter)) == 0)) { data/fetchmail-6.4.13/unmime.c:641: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). *bufp = (buf + strlen(buf)); data/fetchmail-6.4.13/unmime.c:716: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). DBG_FWRITE(buffer, strlen(buffer), 1, fd_orig); data/fetchmail-6.4.13/unmime.c:721: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). i = strlen(buffer); data/fetchmail-6.4.13/x509_name_match.c:22:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strspn(p1+(*p1 == '*' ? 1 : 0), dom) == strlen(p1)) data/fetchmail-6.4.13/x509_name_match.c:26:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strspn(p2, dom) == strlen(p2)) data/fetchmail-6.4.13/x509_name_match.c:55: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). l1 = strlen(p1); data/fetchmail-6.4.13/x509_name_match.c:56: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). l2 = strlen(p2); data/fetchmail-6.4.13/xmalloc.c:51: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). p = (char *) xmalloc(strlen(s)+1); data/fetchmail-6.4.13/xmalloc.c:60: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 = (char *) malloc(strlen(s)+1); data/fetchmail-6.4.13/xmalloc.c:70:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t l = strlen(s); ANALYSIS SUMMARY: Hits = 949 Lines analyzed = 50145 in approximately 1.42 seconds (35413 lines/second) Physical Source Lines of Code (SLOC) = 35337 Hits@level = [0] 221 [1] 278 [2] 346 [3] 30 [4] 295 [5] 0 Hits@level+ = [0+] 1170 [1+] 949 [2+] 671 [3+] 325 [4+] 295 [5+] 0 Hits/KSLOC@level+ = [0+] 33.1098 [1+] 26.8557 [2+] 18.9886 [3+] 9.19716 [4+] 8.34819 [5+] 0 Dot directories skipped = 1 (--followdotdir overrides) Suppressed hits = 1 (use --neverignore to show them) 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.