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/proftpd-dfsg-1.3.7a/include/mkhome.h
Examining data/proftpd-dfsg-1.3.7a/include/os.h
Examining data/proftpd-dfsg-1.3.7a/include/version.h
Examining data/proftpd-dfsg-1.3.7a/include/auth.h
Examining data/proftpd-dfsg-1.3.7a/include/scoreboard.h
Examining data/proftpd-dfsg-1.3.7a/include/response.h
Examining data/proftpd-dfsg-1.3.7a/include/netaddr.h
Examining data/proftpd-dfsg-1.3.7a/include/xferlog.h
Examining data/proftpd-dfsg-1.3.7a/include/openbsd-blowfish.h
Examining data/proftpd-dfsg-1.3.7a/include/compat.h
Examining data/proftpd-dfsg-1.3.7a/include/ascii.h
Examining data/proftpd-dfsg-1.3.7a/include/pr-syslog.h
Examining data/proftpd-dfsg-1.3.7a/include/hanson-tpl.h
Examining data/proftpd-dfsg-1.3.7a/include/jot.h
Examining data/proftpd-dfsg-1.3.7a/include/conf.h
Examining data/proftpd-dfsg-1.3.7a/include/lastlog.h
Examining data/proftpd-dfsg-1.3.7a/include/privs.h
Examining data/proftpd-dfsg-1.3.7a/include/configdb.h
Examining data/proftpd-dfsg-1.3.7a/include/encode.h
Examining data/proftpd-dfsg-1.3.7a/include/signals.h
Examining data/proftpd-dfsg-1.3.7a/include/class.h
Examining data/proftpd-dfsg-1.3.7a/include/env.h
Examining data/proftpd-dfsg-1.3.7a/include/timers.h
Examining data/proftpd-dfsg-1.3.7a/include/json.h
Examining data/proftpd-dfsg-1.3.7a/include/throttle.h
Examining data/proftpd-dfsg-1.3.7a/include/mod_ctrls.h
Examining data/proftpd-dfsg-1.3.7a/include/expr.h
Examining data/proftpd-dfsg-1.3.7a/include/trace.h
Examining data/proftpd-dfsg-1.3.7a/include/options.h
Examining data/proftpd-dfsg-1.3.7a/include/str.h
Examining data/proftpd-dfsg-1.3.7a/include/filter.h
Examining data/proftpd-dfsg-1.3.7a/include/proftpd.h
Examining data/proftpd-dfsg-1.3.7a/include/bindings.h
Examining data/proftpd-dfsg-1.3.7a/include/proctitle.h
Examining data/proftpd-dfsg-1.3.7a/include/redis.h
Examining data/proftpd-dfsg-1.3.7a/include/var.h
Examining data/proftpd-dfsg-1.3.7a/include/netacl.h
Examining data/proftpd-dfsg-1.3.7a/include/glibc-glob.h
Examining data/proftpd-dfsg-1.3.7a/include/table.h
Examining data/proftpd-dfsg-1.3.7a/include/session.h
Examining data/proftpd-dfsg-1.3.7a/include/parser.h
Examining data/proftpd-dfsg-1.3.7a/include/pidfile.h
Examining data/proftpd-dfsg-1.3.7a/include/error.h
Examining data/proftpd-dfsg-1.3.7a/include/log.h
Examining data/proftpd-dfsg-1.3.7a/include/feat.h
Examining data/proftpd-dfsg-1.3.7a/include/default_paths.h
Examining data/proftpd-dfsg-1.3.7a/include/ftp.h
Examining data/proftpd-dfsg-1.3.7a/include/fsio.h
Examining data/proftpd-dfsg-1.3.7a/include/rlimit.h
Examining data/proftpd-dfsg-1.3.7a/include/ctrls.h
Examining data/proftpd-dfsg-1.3.7a/include/child.h
Examining data/proftpd-dfsg-1.3.7a/include/dirtree.h
Examining data/proftpd-dfsg-1.3.7a/include/utf8.h
Examining data/proftpd-dfsg-1.3.7a/include/pool.h
Examining data/proftpd-dfsg-1.3.7a/include/regexp.h
Examining data/proftpd-dfsg-1.3.7a/include/memcache.h
Examining data/proftpd-dfsg-1.3.7a/include/logfmt.h
Examining data/proftpd-dfsg-1.3.7a/include/modules.h
Examining data/proftpd-dfsg-1.3.7a/include/event.h
Examining data/proftpd-dfsg-1.3.7a/include/stash.h
Examining data/proftpd-dfsg-1.3.7a/include/netio.h
Examining data/proftpd-dfsg-1.3.7a/include/support.h
Examining data/proftpd-dfsg-1.3.7a/include/data.h
Examining data/proftpd-dfsg-1.3.7a/include/cmd.h
Examining data/proftpd-dfsg-1.3.7a/include/ccan-json.h
Examining data/proftpd-dfsg-1.3.7a/include/sets.h
Examining data/proftpd-dfsg-1.3.7a/include/random.h
Examining data/proftpd-dfsg-1.3.7a/include/ident.h
Examining data/proftpd-dfsg-1.3.7a/include/inet.h
Examining data/proftpd-dfsg-1.3.7a/include/help.h
Examining data/proftpd-dfsg-1.3.7a/include/display.h
Examining data/proftpd-dfsg-1.3.7a/include/libsupp.h
Examining data/proftpd-dfsg-1.3.7a/doc/mod_sample.c
Examining data/proftpd-dfsg-1.3.7a/acconfig.h
Examining data/proftpd-dfsg-1.3.7a/lib/getopt.h
Examining data/proftpd-dfsg-1.3.7a/lib/getopt1.c
Examining data/proftpd-dfsg-1.3.7a/lib/ccan-json.c
Examining data/proftpd-dfsg-1.3.7a/lib/pr_fnmatch.c
Examining data/proftpd-dfsg-1.3.7a/lib/openbsd-bcrypt.c
Examining data/proftpd-dfsg-1.3.7a/lib/pr-syslog.c
Examining data/proftpd-dfsg-1.3.7a/lib/glibc-gai_strerror.c
Examining data/proftpd-dfsg-1.3.7a/lib/vsnprintf.c
Examining data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c
Examining data/proftpd-dfsg-1.3.7a/lib/glibc-mkstemp.c
Examining data/proftpd-dfsg-1.3.7a/lib/libltdl/lt__dirent.c
Examining data/proftpd-dfsg-1.3.7a/lib/libltdl/argz_.h
Examining data/proftpd-dfsg-1.3.7a/lib/libltdl/lt__strl.c
Examining data/proftpd-dfsg-1.3.7a/lib/libltdl/libltdl/lt__strl.h
Examining data/proftpd-dfsg-1.3.7a/lib/libltdl/libltdl/lt_system.h
Examining data/proftpd-dfsg-1.3.7a/lib/libltdl/libltdl/lt__alloc.h
Examining data/proftpd-dfsg-1.3.7a/lib/libltdl/libltdl/lt__glibc.h
Examining data/proftpd-dfsg-1.3.7a/lib/libltdl/libltdl/lt_error.h
Examining data/proftpd-dfsg-1.3.7a/lib/libltdl/libltdl/lt_dlloader.h
Examining data/proftpd-dfsg-1.3.7a/lib/libltdl/libltdl/lt__dirent.h
Examining data/proftpd-dfsg-1.3.7a/lib/libltdl/libltdl/lt__private.h
Examining data/proftpd-dfsg-1.3.7a/lib/libltdl/libltdl/slist.h
Examining data/proftpd-dfsg-1.3.7a/lib/libltdl/lt__alloc.c
Examining data/proftpd-dfsg-1.3.7a/lib/libltdl/slist.c
Examining data/proftpd-dfsg-1.3.7a/lib/libltdl/lt_error.c
Examining data/proftpd-dfsg-1.3.7a/lib/libltdl/ltdl.c
Examining data/proftpd-dfsg-1.3.7a/lib/libltdl/loaders/load_add_on.c
Examining data/proftpd-dfsg-1.3.7a/lib/libltdl/loaders/preopen.c
Examining data/proftpd-dfsg-1.3.7a/lib/libltdl/loaders/dld_link.c
Examining data/proftpd-dfsg-1.3.7a/lib/libltdl/loaders/dlopen.c
Examining data/proftpd-dfsg-1.3.7a/lib/libltdl/loaders/dyld.c
Examining data/proftpd-dfsg-1.3.7a/lib/libltdl/loaders/loadlibrary.c
Examining data/proftpd-dfsg-1.3.7a/lib/libltdl/loaders/shl_load.c
Examining data/proftpd-dfsg-1.3.7a/lib/libltdl/lt_dlloader.c
Examining data/proftpd-dfsg-1.3.7a/lib/libltdl/argz.c
Examining data/proftpd-dfsg-1.3.7a/lib/libltdl/ltdl.h
Examining data/proftpd-dfsg-1.3.7a/lib/pr_fnmatch_loop.c
Examining data/proftpd-dfsg-1.3.7a/lib/strsep.c
Examining data/proftpd-dfsg-1.3.7a/lib/openbsd-blowfish.c
Examining data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c
Examining data/proftpd-dfsg-1.3.7a/lib/glibc-hstrerror.c
Examining data/proftpd-dfsg-1.3.7a/lib/getopt.c
Examining data/proftpd-dfsg-1.3.7a/lib/pwgrent.c
Examining data/proftpd-dfsg-1.3.7a/lib/sstrncpy.c
Examining data/proftpd-dfsg-1.3.7a/src/table.c
Examining data/proftpd-dfsg-1.3.7a/src/scoreboard.c
Examining data/proftpd-dfsg-1.3.7a/src/cmd.c
Examining data/proftpd-dfsg-1.3.7a/src/timers.c
Examining data/proftpd-dfsg-1.3.7a/src/version.c
Examining data/proftpd-dfsg-1.3.7a/src/xferlog.c
Examining data/proftpd-dfsg-1.3.7a/src/memcache.c
Examining data/proftpd-dfsg-1.3.7a/src/response.c
Examining data/proftpd-dfsg-1.3.7a/src/ftpdctl.c
Examining data/proftpd-dfsg-1.3.7a/src/help.c
Examining data/proftpd-dfsg-1.3.7a/src/trace.c
Examining data/proftpd-dfsg-1.3.7a/src/data.c
Examining data/proftpd-dfsg-1.3.7a/src/ascii.c
Examining data/proftpd-dfsg-1.3.7a/src/display.c
Examining data/proftpd-dfsg-1.3.7a/src/configdb.c
Examining data/proftpd-dfsg-1.3.7a/src/parser.c
Examining data/proftpd-dfsg-1.3.7a/src/expr.c
Examining data/proftpd-dfsg-1.3.7a/src/privs.c
Examining data/proftpd-dfsg-1.3.7a/src/netaddr.c
Examining data/proftpd-dfsg-1.3.7a/src/dirtree.c
Examining data/proftpd-dfsg-1.3.7a/src/proctitle.c
Examining data/proftpd-dfsg-1.3.7a/src/jot.c
Examining data/proftpd-dfsg-1.3.7a/src/error.c
Examining data/proftpd-dfsg-1.3.7a/src/stash.c
Examining data/proftpd-dfsg-1.3.7a/src/netacl.c
Examining data/proftpd-dfsg-1.3.7a/src/utf8.c
Examining data/proftpd-dfsg-1.3.7a/src/event.c
Examining data/proftpd-dfsg-1.3.7a/src/random.c
Examining data/proftpd-dfsg-1.3.7a/src/env.c
Examining data/proftpd-dfsg-1.3.7a/src/lastlog.c
Examining data/proftpd-dfsg-1.3.7a/src/ident.c
Examining data/proftpd-dfsg-1.3.7a/src/inet.c
Examining data/proftpd-dfsg-1.3.7a/src/pool.c
Examining data/proftpd-dfsg-1.3.7a/src/feat.c
Examining data/proftpd-dfsg-1.3.7a/src/class.c
Examining data/proftpd-dfsg-1.3.7a/src/main.c
Examining data/proftpd-dfsg-1.3.7a/src/sets.c
Examining data/proftpd-dfsg-1.3.7a/src/regexp.c
Examining data/proftpd-dfsg-1.3.7a/src/rlimit.c
Examining data/proftpd-dfsg-1.3.7a/src/filter.c
Examining data/proftpd-dfsg-1.3.7a/src/bindings.c
Examining data/proftpd-dfsg-1.3.7a/src/var.c
Examining data/proftpd-dfsg-1.3.7a/src/log.c
Examining data/proftpd-dfsg-1.3.7a/src/signals.c
Examining data/proftpd-dfsg-1.3.7a/src/throttle.c
Examining data/proftpd-dfsg-1.3.7a/src/redis.c
Examining data/proftpd-dfsg-1.3.7a/src/session.c
Examining data/proftpd-dfsg-1.3.7a/src/netio.c
Examining data/proftpd-dfsg-1.3.7a/src/fsio.c
Examining data/proftpd-dfsg-1.3.7a/src/auth.c
Examining data/proftpd-dfsg-1.3.7a/src/wtmp.c
Examining data/proftpd-dfsg-1.3.7a/src/str.c
Examining data/proftpd-dfsg-1.3.7a/src/child.c
Examining data/proftpd-dfsg-1.3.7a/src/mkhome.c
Examining data/proftpd-dfsg-1.3.7a/src/support.c
Examining data/proftpd-dfsg-1.3.7a/src/json.c
Examining data/proftpd-dfsg-1.3.7a/src/pidfile.c
Examining data/proftpd-dfsg-1.3.7a/src/encode.c
Examining data/proftpd-dfsg-1.3.7a/src/modules.c
Examining data/proftpd-dfsg-1.3.7a/src/ctrls.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/table.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/scoreboard.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/cmd.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/timers.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/version.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/response.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/help.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/trace.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/data.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/ascii.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/display.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/configdb.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/parser.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/expr.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/privs.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/netaddr.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/jot.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/error.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/stash.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/netacl.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/event.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/random.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/env.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/stubs.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/inet.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/pool.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/feat.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/class.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/sets.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/tests.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/regexp.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/rlimit.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/filter.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/var.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/redis.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/misc.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/netio.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/fsio.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/auth.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/str.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/array.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/tests.h
Examining data/proftpd-dfsg-1.3.7a/tests/api/json.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/pidfile.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/encode.c
Examining data/proftpd-dfsg-1.3.7a/tests/api/modules.c
Examining data/proftpd-dfsg-1.3.7a/utils/scoreboard.c
Examining data/proftpd-dfsg-1.3.7a/utils/ftpcount.c
Examining data/proftpd-dfsg-1.3.7a/utils/ftpwho.c
Examining data/proftpd-dfsg-1.3.7a/utils/ftpshut.c
Examining data/proftpd-dfsg-1.3.7a/utils/utils.h
Examining data/proftpd-dfsg-1.3.7a/utils/ftpscrub.c
Examining data/proftpd-dfsg-1.3.7a/utils/ftptop.c
Examining data/proftpd-dfsg-1.3.7a/utils/misc.c
Examining data/proftpd-dfsg-1.3.7a/modules/mod_log.c
Examining data/proftpd-dfsg-1.3.7a/modules/mod_ls.c
Examining data/proftpd-dfsg-1.3.7a/modules/mod_core.c
Examining data/proftpd-dfsg-1.3.7a/modules/mod_dso.c
Examining data/proftpd-dfsg-1.3.7a/modules/mod_ident.c
Examining data/proftpd-dfsg-1.3.7a/modules/mod_facts.c
Examining data/proftpd-dfsg-1.3.7a/modules/mod_ctrls.c
Examining data/proftpd-dfsg-1.3.7a/modules/mod_auth.c
Examining data/proftpd-dfsg-1.3.7a/modules/mod_facl.c
Examining data/proftpd-dfsg-1.3.7a/modules/mod_site.c
Examining data/proftpd-dfsg-1.3.7a/modules/mod_cap.c
Examining data/proftpd-dfsg-1.3.7a/modules/mod_delay.c
Examining data/proftpd-dfsg-1.3.7a/modules/mod_memcache.c
Examining data/proftpd-dfsg-1.3.7a/modules/mod_rlimit.c
Examining data/proftpd-dfsg-1.3.7a/modules/mod_auth_unix.c
Examining data/proftpd-dfsg-1.3.7a/modules/mod_lang.c
Examining data/proftpd-dfsg-1.3.7a/modules/mod_auth_file.c
Examining data/proftpd-dfsg-1.3.7a/modules/mod_xfer.c
Examining data/proftpd-dfsg-1.3.7a/modules/mod_redis.c
Examining data/proftpd-dfsg-1.3.7a/modules/mod_auth_pam.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sql_postgres.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_unique_id.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab_radius.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab_sql.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_rewrite.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp_sql.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sql.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_tls_memcache.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_dnsbl/mod_dnsbl.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_ifsession.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_tls_redis.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_statcache.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_ctrls_admin.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_geoip.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/db.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/uptime.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/asn1.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/mib.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/mib.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/pdu.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/mod_snmp.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/asn1.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/agentx.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/msg.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/smi.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/uptime.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/smi.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/notify.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/db.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/packet.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/notify.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/pdu.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/packet.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/msg.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_log_forensic.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/auth-otp.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/db.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/t/api/otp.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/t/api/stubs.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/t/api/tests.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/t/api/tests.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/t/api/base32.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/otp.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/base32.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/crypto.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/db.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/crypto.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/mod_auth_otp.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/base32.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/otp.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_readme.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_site_misc.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_wrap2/mod_wrap2.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_exec.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_tls_shmcache.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sql.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_digest.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_deflate.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_ban.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_wrap2_sql.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/cipher.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/auth.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/kex.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/auth-kbdint.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/cipher.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/scp.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/misc.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/interop.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/service.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/display.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/auth-password.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/rfc4716.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/disconnect.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/umac.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/tap.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/blacklist.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/auth-publickey.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/bcrypt.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/session.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/interop.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/keys.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/keys.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/mac.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/utf8.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/compress.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/umac.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/kbdint.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/kex.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/date.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/auth-hostbased.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/blacklist.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/mac.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/tap.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/mod_sftp.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/msg.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/utf8.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/crypto.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/ssh2.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/channel.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/packet.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/bcrypt.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/compress.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/keystore.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/date.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/keystore.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/session.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/misc.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/crypto.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/auth.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/scp.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/packet.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/service.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/disconnect.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/msg.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/rfc4716.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/agent.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/kbdint.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/display.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/channel.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/agent.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_ratio.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_wrap2_file.c
Examining data/proftpd-dfsg-1.3.7a/contrib/dist/coverity/modeling.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sql_sqlite.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sftp_pam.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_copy.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab_file.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_wrap2_redis.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab_ldap.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_ifversion.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sql_passwd.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_tls_fscache.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_tls.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_ldap.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_qos.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_load/getloadavg.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_load/mod_load.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_dynmasq.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab.h
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_shaper.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sql_mysql.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_wrap.c
Examining data/proftpd-dfsg-1.3.7a/contrib/mod_sql_odbc.c
Examining data/proftpd-dfsg-1.3.7a/debian/patches/mod_sql_mysql.c

FINAL RESULTS:

data/proftpd-dfsg-1.3.7a/contrib/mod_statcache.c:1538:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  res = chmod(path, mode);
data/proftpd-dfsg-1.3.7a/contrib/mod_statcache.c:1617:9:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
  res = chown(path, uid, gid);
data/proftpd-dfsg-1.3.7a/include/fsio.h:140:9:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
  int (*readlink)(pr_fs_t *, const char *, char *, size_t);
data/proftpd-dfsg-1.3.7a/include/fsio.h:144:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  int (*chmod)(pr_fs_t *, const char *, mode_t);
data/proftpd-dfsg-1.3.7a/include/fsio.h:146:9:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
  int (*chown)(pr_fs_t *, const char *, uid_t, gid_t);
data/proftpd-dfsg-1.3.7a/modules/mod_auth.c:2886:36:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
    robots_fs->readlink = curr_fs->readlink;
data/proftpd-dfsg-1.3.7a/modules/mod_auth.c:2890:33:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    robots_fs->chmod = curr_fs->chmod;
data/proftpd-dfsg-1.3.7a/modules/mod_auth.c:2892:33:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
    robots_fs->chown = curr_fs->chown;
data/proftpd-dfsg-1.3.7a/modules/mod_ctrls.c:557:7:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  if (chmod(sock.sun_path, (mode_t) PR_CTRLS_MODE) < 0) {
data/proftpd-dfsg-1.3.7a/modules/mod_ctrls.c:728:9:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
    if (chown(ctrls_sock_file, ctrls_sock_uid, ctrls_sock_gid) < 0) {
data/proftpd-dfsg-1.3.7a/src/ctrls.c:1154:7:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  if (chmod(cl_sock.sun_path, PR_CTRLS_CL_MODE) < 0) {
data/proftpd-dfsg-1.3.7a/src/fsio.c:342:10:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
  return readlink(path, buf, buflen);
data/proftpd-dfsg-1.3.7a/src/fsio.c:373:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  res = chmod(path, mode);
data/proftpd-dfsg-1.3.7a/src/fsio.c:391:9:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
  res = chown(path, uid, gid);
data/proftpd-dfsg-1.3.7a/src/fsio.c:1563:11:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
  if (fs->readlink != NULL) {
data/proftpd-dfsg-1.3.7a/src/fsio.c:1564:16:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
    res = (fs->readlink)(fs, path, &linkbuf[2], sizeof(linkbuf)-3);
data/proftpd-dfsg-1.3.7a/src/fsio.c:4221:11:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    res = chmod(path, perms);
data/proftpd-dfsg-1.3.7a/src/fsio.c:4769:36:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
  while (fs && fs->fs_next && !fs->readlink) {
data/proftpd-dfsg-1.3.7a/src/fsio.c:4775:14:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
  res = (fs->readlink)(fs, path, buf, buflen);
data/proftpd-dfsg-1.3.7a/src/fsio.c:5498:36:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  while (fs && fs->fs_next && !fs->chmod) {
data/proftpd-dfsg-1.3.7a/src/fsio.c:5504:14:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  res = (fs->chmod)(fs, name, mode);
data/proftpd-dfsg-1.3.7a/src/fsio.c:5608:36:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
  while (fs && fs->fs_next && !fs->chown) {
data/proftpd-dfsg-1.3.7a/src/fsio.c:5614:14:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
  res = (fs->chown)(fs, name, uid, gid);
data/proftpd-dfsg-1.3.7a/src/fsio.c:7468:11:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
  if (fs->readlink) {
data/proftpd-dfsg-1.3.7a/src/fsio.c:7484:11:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  if (fs->chmod) {
data/proftpd-dfsg-1.3.7a/src/fsio.c:7488:11:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
  if (fs->chown) {
data/proftpd-dfsg-1.3.7a/tests/api/fsio.c:793:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  res = chmod(fsio_testdir_path, perms);
data/proftpd-dfsg-1.3.7a/tests/api/fsio.c:896:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  res = chmod(fsio_test_path, perms);
data/proftpd-dfsg-1.3.7a/tests/api/fsio.c:963:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  res = chmod(fsio_test_path, perms);
data/proftpd-dfsg-1.3.7a/tests/api/fsio.c:3567:27:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
  fs->readlink = root_fs->readlink;
data/proftpd-dfsg-1.3.7a/tests/api/fsio.c:3571:24:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  fs->chmod = root_fs->chmod;
data/proftpd-dfsg-1.3.7a/tests/api/fsio.c:3573:24:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
  fs->chown = root_fs->chown;
data/proftpd-dfsg-1.3.7a/tests/api/scoreboard.c:129:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  res = chmod(test_dir, 0777);
data/proftpd-dfsg-1.3.7a/tests/api/scoreboard.c:141:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  res = chmod(test_dir, 0775);
data/proftpd-dfsg-1.3.7a/tests/api/scoreboard.c:186:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  res = chmod(test_dir, 0775);
data/proftpd-dfsg-1.3.7a/tests/api/scoreboard.c:312:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  res = chmod(test_dir, 0775);
data/proftpd-dfsg-1.3.7a/tests/api/scoreboard.c:347:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  res = chmod(test_dir, 0775);
data/proftpd-dfsg-1.3.7a/tests/api/scoreboard.c:386:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  res = chmod(test_dir, 0775);
data/proftpd-dfsg-1.3.7a/tests/api/scoreboard.c:419:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  res = chmod(test_dir, 0775);
data/proftpd-dfsg-1.3.7a/tests/api/scoreboard.c:465:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  res = chmod(test_dir, 0775);
data/proftpd-dfsg-1.3.7a/tests/api/scoreboard.c:509:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  res = chmod(test_dir, 0775);
data/proftpd-dfsg-1.3.7a/tests/api/scoreboard.c:554:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  res = chmod(test_dir, 0775);
data/proftpd-dfsg-1.3.7a/tests/api/scoreboard.c:592:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  res = chmod(test_dir, 0775);
data/proftpd-dfsg-1.3.7a/tests/api/scoreboard.c:640:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  res = chmod(test_dir, 0775);
data/proftpd-dfsg-1.3.7a/tests/api/scoreboard.c:702:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  res = chmod(test_dir, 0775);
data/proftpd-dfsg-1.3.7a/tests/api/scoreboard.c:757:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  res = chmod(test_dir, 0775);
data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/auth-otp.c:75:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, fmt, msg);
data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/auth-otp.c:89:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, fmt, msg);
data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/auth-otp.c:133:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, fmt, msg);
data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/auth-otp.c:143: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.
  return vsnprintf(buf, bufsz, fmt, msg);
data/proftpd-dfsg-1.3.7a/contrib/mod_exec.c:87:31:  [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, 1, 2)));
data/proftpd-dfsg-1.3.7a/contrib/mod_ldap.c:1822:15:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
    crypted = crypt(pass, cryptpass + encname_len);
data/proftpd-dfsg-1.3.7a/contrib/mod_load/mod_load.c:817: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 (nl[0].n_name, LDAV_SYMBOL);
data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab.h:196:32:  [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, 1, 2)));
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/keys.c:376:5:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    execv(passphrase_provider, stdin_argv);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql.c:1066:18:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
  res = (char *) crypt(plaintext, ciphertext);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:3045:5:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    execv(tls_passphrase_provider, stdin_argv);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.h:40:32:  [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, 1, 2)));
data/proftpd-dfsg-1.3.7a/include/ctrls.h:167:32:  [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/proftpd-dfsg-1.3.7a/include/fsio.h:149:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  int (*access)(pr_fs_t *, const char *, int, uid_t, gid_t, array_header *);
data/proftpd-dfsg-1.3.7a/include/libsupp.h:80:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
int snprintf(char *, size_t, const char *, ...);
data/proftpd-dfsg-1.3.7a/include/libsupp.h:96: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.
int vsnprintf(char *, size_t, const char *, va_list);
data/proftpd-dfsg-1.3.7a/include/log.h:118:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  __attribute__ ((format (printf, 3, 4)));
data/proftpd-dfsg-1.3.7a/include/log.h:140:32:  [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/proftpd-dfsg-1.3.7a/include/log.h:147:32:  [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/proftpd-dfsg-1.3.7a/include/log.h:154:32:  [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/proftpd-dfsg-1.3.7a/include/mod_ctrls.h:97:32:  [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/proftpd-dfsg-1.3.7a/include/os.h:291: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/proftpd-dfsg-1.3.7a/include/os.h:292: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	__vsnprintf
data/proftpd-dfsg-1.3.7a/include/os.h:297: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/proftpd-dfsg-1.3.7a/include/os.h:298: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	__snprintf
data/proftpd-dfsg-1.3.7a/include/proctitle.h:38:32:  [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, 1, 2)));
data/proftpd-dfsg-1.3.7a/include/response.h:44:32:  [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/proftpd-dfsg-1.3.7a/include/response.h:51:32:  [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/proftpd-dfsg-1.3.7a/include/response.h:75:32:  [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/proftpd-dfsg-1.3.7a/include/response.h:82:32:  [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/proftpd-dfsg-1.3.7a/include/response.h:89:32:  [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, 1, 2)));
data/proftpd-dfsg-1.3.7a/include/support.h:122:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  __attribute__ ((format (printf, 3, 4)));
data/proftpd-dfsg-1.3.7a/include/support.h:133:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  __attribute__ ((format (printf, 5, 6)));
data/proftpd-dfsg-1.3.7a/include/trace.h:59:31:  [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, 3, 4)));
data/proftpd-dfsg-1.3.7a/lib/ccan-json.c:58: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(ret, str);
data/proftpd-dfsg-1.3.7a/lib/ccan-json.c:1347:5:  [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(errmsg, 256, __VA_ARGS__); \
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:355:14:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
extern char *getlogin __P ((void));
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:734:26:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
	      success = (name = getlogin ()) != NULL;
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:249:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr,fmt,ap);
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:2163: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(exit_msg, sizeof(exit_msg)-1, fmt, ap);
data/proftpd-dfsg-1.3.7a/lib/libltdl/libltdl/lt__private.h:117:11:  [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.
  void *		system;		/* system specific data */
data/proftpd-dfsg-1.3.7a/lib/libltdl/loaders/loadlibrary.c:150: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(wpath, filename);
data/proftpd-dfsg-1.3.7a/lib/libltdl/ltdl.c:505:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (filename, "%.*s/%s", (int) dirname_len, dirname, dlname);
data/proftpd-dfsg-1.3.7a/lib/libltdl/ltdl.c:701: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 (filename, dir_name);
data/proftpd-dfsg-1.3.7a/lib/libltdl/ltdl.c:707: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 (filename +lendir, base_name);
data/proftpd-dfsg-1.3.7a/lib/libltdl/ltdl.c:768: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		notfound	= access (filename, R_OK);
data/proftpd-dfsg-1.3.7a/lib/libltdl/ltdl.c:905:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		    sprintf (name, "lib%s", p+2);
data/proftpd-dfsg-1.3.7a/lib/libltdl/ltdl.c:1187:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(attempt, "%s%s", filename, ext);
data/proftpd-dfsg-1.3.7a/lib/libltdl/ltdl.c:1280:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf (archive_name, "%s.%s", name, libext);
data/proftpd-dfsg-1.3.7a/lib/libltdl/ltdl.c:1770:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy  (buf, dirnam);
data/proftpd-dfsg-1.3.7a/lib/libltdl/ltdl.c:2013:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	  strcpy(sym, handle->vtable->sym_prefix);
data/proftpd-dfsg-1.3.7a/lib/libltdl/ltdl.c:2014:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	  strcat(sym, handle->info.name);
data/proftpd-dfsg-1.3.7a/lib/libltdl/ltdl.c:2018:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	  strcpy(sym, handle->info.name);
data/proftpd-dfsg-1.3.7a/lib/libltdl/ltdl.c:2022: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(sym, symbol);
data/proftpd-dfsg-1.3.7a/lib/libltdl/ltdl.c:2040: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(sym, handle->vtable->sym_prefix);
data/proftpd-dfsg-1.3.7a/lib/libltdl/ltdl.c:2041: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(sym, symbol);
data/proftpd-dfsg-1.3.7a/lib/libltdl/ltdl.c:2045: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(sym, symbol);
data/proftpd-dfsg-1.3.7a/lib/pr-syslog.c:261:11:  [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.
    len = vsnprintf(&(logbuf[buflen]), sizeof(logbuf) - buflen, fmt, ap);
data/proftpd-dfsg-1.3.7a/lib/pr_fnmatch.c:252:23:  [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).
# define STRCAT(D, S) strcat (D, S)
data/proftpd-dfsg-1.3.7a/lib/vsnprintf.c:162: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.
int vsnprintf(char *buf, size_t size, const char *fmt, va_list args)
data/proftpd-dfsg-1.3.7a/lib/vsnprintf.c:438:1:  [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(char *buf, size_t size, const char *fmt, ...)
data/proftpd-dfsg-1.3.7a/lib/vsnprintf.c:444:7:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  i = vsnprintf(buf,size,fmt,args);
data/proftpd-dfsg-1.3.7a/modules/mod_auth_file.c:1307:18:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
  crypted_pass = crypt(cleartxt_pass, ciphertxt_pass);
data/proftpd-dfsg-1.3.7a/modules/mod_auth_file.c:1698:10:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
  hash = crypt(key, salt);
data/proftpd-dfsg-1.3.7a/modules/mod_auth_unix.c:1058:27:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
  crypted_text = (char *) crypt(pw, cpw);
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:49:32:  [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/proftpd-dfsg-1.3.7a/src/fsio.c:5772:36:  [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.
  while (fs && fs->fs_next && !fs->access) {
data/proftpd-dfsg-1.3.7a/src/fsio.c:5778:15:  [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.
  return (fs->access)(fs, path, mode, uid, gid, suppl_gids);
data/proftpd-dfsg-1.3.7a/src/fsio.c:7500:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if (fs->access) {
data/proftpd-dfsg-1.3.7a/src/ftpdctl.c:176: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.
  return vsnprintf(buf, bufsz, fmt, msg);
data/proftpd-dfsg-1.3.7a/src/modules.c:193: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.
    listf = printf;
data/proftpd-dfsg-1.3.7a/src/proctitle.c:223:3:  [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(proc_title_buf, sizeof(proc_title_buf)-1, fmt, msg);
data/proftpd-dfsg-1.3.7a/src/proctitle.c:228:3:  [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(proc_title_buf + strlen(proc_title_buf),
data/proftpd-dfsg-1.3.7a/src/proctitle.c:237:3:  [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(proc_title_buf + strlen(proc_title_buf),
data/proftpd-dfsg-1.3.7a/src/scoreboard.c:66:3:  [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)-1, fmt, cmdap);
data/proftpd-dfsg-1.3.7a/src/support.c:1229: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.
  res = vsnprintf(buf, bufsz, fmt, msg);
data/proftpd-dfsg-1.3.7a/tests/api/fsio.c:3576:25:  [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.
  fs->access = root_fs->access;
data/proftpd-dfsg-1.3.7a/tests/api/response.c:237:3:  [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), fmt, msg);
data/proftpd-dfsg-1.3.7a/tests/api/stubs.c:133:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, fmt, msg);
data/proftpd-dfsg-1.3.7a/tests/api/stubs.c:147:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, fmt, msg);
data/proftpd-dfsg-1.3.7a/tests/api/stubs.c:171:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, fmt, msg);
data/proftpd-dfsg-1.3.7a/utils/ftptop.c:510:7:  [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), FTPTOP_REG_DISPLAY_FMT,
data/proftpd-dfsg-1.3.7a/utils/ftptop.c:531:7:  [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), FTPTOP_XFER_DISPLAY_FMT,
data/proftpd-dfsg-1.3.7a/utils/ftptop.c:690: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(stdout, FTPTOP_VERSION "\n");
data/proftpd-dfsg-1.3.7a/contrib/dist/coverity/modeling.c:58:6:  [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.
long random(void) {
data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/auth-otp.c:236:3:  [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, cmdopts, opts, NULL)
data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/auth-otp.c:238:3:  [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, cmdopts)
data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/t/api/tests.c:67: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.
  requested = getenv("AUTH_OTP_TEST_SUITE");
data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/t/api/tests.c:95: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.
  requested = getenv("PR_TEST_NOFORK");
data/proftpd-dfsg-1.3.7a/contrib/mod_ban.c:1826: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 ((optc = getopt(reqargc, reqargv, reqopts)) != -1) {
data/proftpd-dfsg-1.3.7a/contrib/mod_ban.c:2083:20:  [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 ((optc = getopt(reqargc, reqargv, reqopts)) != -1) {
data/proftpd-dfsg-1.3.7a/contrib/mod_ban.c:2320: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 ((optc = getopt(reqargc, reqargv, reqopts)) != -1) {
data/proftpd-dfsg-1.3.7a/contrib/mod_ctrls_admin.c:721:20:  [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 ((optc = getopt(reqargc, reqargv, reqopts)) != -1) {
data/proftpd-dfsg-1.3.7a/contrib/mod_ctrls_admin.c:821:20:  [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 ((optc = getopt(reqargc, reqargv, reqopts)) != -1) {
data/proftpd-dfsg-1.3.7a/contrib/mod_ctrls_admin.c:919:20:  [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 ((optc = getopt(reqargc, reqargv, reqopts)) != -1) {
data/proftpd-dfsg-1.3.7a/contrib/mod_exec.c:247:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        getenv(c->argv[0]) ? getenv(c->argv[0]) : "", NULL);
data/proftpd-dfsg-1.3.7a/contrib/mod_exec.c:247:30:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        getenv(c->argv[0]) ? getenv(c->argv[0]) : "", NULL);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/date.c:118: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 ((optc = getopt(req->nelts-1, reqargv, opts)) != -1) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/scp.c:2503: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 ((optc = getopt(req->nelts-1, reqargv, opts)) != -1) {
data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/mod_snmp.c:1658:11:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
    res = chroot(agent_chroot);
data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/mod_snmp.c:4054:3:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srandom((unsigned int) (time(NULL) * getpid())); 
data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/mod_snmp.c:4195:3:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srandom((unsigned int) (time(NULL) * getpid())); 
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:11227: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 ((optc = getopt(reqargc, reqargv, opts)) != -1) {
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:11320: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 ((optc = getopt(reqargc, reqargv, opts)) != -1) {
data/proftpd-dfsg-1.3.7a/include/fsio.h:179:9:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
  int (*chroot)(pr_fs_t *, const char *);
data/proftpd-dfsg-1.3.7a/include/support.h:45:5:  [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.
int getopt(int, char * const [], const char *);
data/proftpd-dfsg-1.3.7a/include/support.h:57:5:  [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.
int getopt_long(int, char * const [], const char *, const struct option *,
data/proftpd-dfsg-1.3.7a/lib/getopt.c:212:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
#ifndef getenv
data/proftpd-dfsg-1.3.7a/lib/getopt.c:213:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
extern char *getenv ();
data/proftpd-dfsg-1.3.7a/lib/getopt.c:405: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/proftpd-dfsg-1.3.7a/lib/getopt.c:974: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/proftpd-dfsg-1.3.7a/lib/getopt.c:1004: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/proftpd-dfsg-1.3.7a/lib/getopt.h:136: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/proftpd-dfsg-1.3.7a/lib/getopt.h:142: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/proftpd-dfsg-1.3.7a/lib/getopt.h:155: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/proftpd-dfsg-1.3.7a/lib/getopt.h:157: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/proftpd-dfsg-1.3.7a/lib/getopt1.c:67: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/proftpd-dfsg-1.3.7a/lib/getopt1.c:123: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/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:196:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
extern char *getenv ();
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:710:27:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	  const char *home_dir = getenv ("HOME");
data/proftpd-dfsg-1.3.7a/lib/libltdl/loaders/loadlibrary.c:179:14:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
    module = LoadLibrary (wpath);
data/proftpd-dfsg-1.3.7a/lib/libltdl/ltdl.c:1329:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	      search_path = getenv (LTDL_SEARCHPATH_VAR);
data/proftpd-dfsg-1.3.7a/lib/libltdl/ltdl.c:1337:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	      search_path = getenv (LT_MODULE_PATH_VAR);
data/proftpd-dfsg-1.3.7a/lib/libltdl/ltdl.c:1437:23:  [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.
		   && !find_handle (getenv (LTDL_SEARCHPATH_VAR), base_name,
data/proftpd-dfsg-1.3.7a/lib/libltdl/ltdl.c:1440:23:  [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.
		   && !find_handle (getenv (LT_MODULE_PATH_VAR), base_name,
data/proftpd-dfsg-1.3.7a/lib/libltdl/ltdl.c:1875:33:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	  is_done = foreach_dirinpath (getenv(LTDL_SEARCHPATH_VAR), 0,
data/proftpd-dfsg-1.3.7a/lib/libltdl/ltdl.c:1882:33:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	  is_done = foreach_dirinpath (getenv(LT_MODULE_PATH_VAR), 0,
data/proftpd-dfsg-1.3.7a/lib/pr_fnmatch_loop.c:271:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	      posixly_correct = getenv ("POSIXLY_CORRECT") != NULL ? 1 : -1;
data/proftpd-dfsg-1.3.7a/lib/pr_fnmatch_loop.c:1052:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	  posixly_correct = getenv ("POSIXLY_CORRECT") != NULL ? 1 : -1;
data/proftpd-dfsg-1.3.7a/lib/pr_fnmatch_loop.c:1104:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	  posixly_correct = getenv ("POSIXLY_CORRECT") != NULL ? 1 : -1;
data/proftpd-dfsg-1.3.7a/src/env.c:37:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  return getenv(key);
data/proftpd-dfsg-1.3.7a/src/fsio.c:1113:7:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
  if (chroot(path) < 0) {
data/proftpd-dfsg-1.3.7a/src/fsio.c:6376:36:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
  while (fs && fs->fs_next && !fs->chroot) {
data/proftpd-dfsg-1.3.7a/src/fsio.c:6382:14:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
  res = (fs->chroot)(fs, path);
data/proftpd-dfsg-1.3.7a/src/fsio.c:7524:11:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
  if (fs->chroot) {
data/proftpd-dfsg-1.3.7a/src/ftpdctl.c:241: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 ((optc = getopt(argc, argv, cmdopts)) != -1) {
data/proftpd-dfsg-1.3.7a/src/main.c:2330:3:  [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, cmdopts, opts, NULL)
data/proftpd-dfsg-1.3.7a/src/main.c:2332:3:  [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, cmdopts)
data/proftpd-dfsg-1.3.7a/src/random.c:32:3:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srandom(getpid() ^ tv.tv_usec);
data/proftpd-dfsg-1.3.7a/src/random.c:34:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand((unsigned int) (getpid() * time(NULL)));
data/proftpd-dfsg-1.3.7a/src/random.c:44:7:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  r = random();
data/proftpd-dfsg-1.3.7a/tests/api/auth.c:433: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/auth.c:473: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/configdb.c:39: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/configdb.c:45: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/data.c:53: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/data.c:63: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/display.c:58: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/display.c:74: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/encode.c:40: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/encode.c:46: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/error.c:37: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/error.c:43: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/filter.c:38: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/filter.c:45: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/fsio.c:70: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/fsio.c:89: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/fsio.c:837: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.
  if (getenv("CIRRUS_CLONE_DEPTH") == NULL &&
data/proftpd-dfsg-1.3.7a/tests/api/fsio.c:838:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      getenv("TRAVIS") == NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/fsio.c:3582:25:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
  fs->chroot = root_fs->chroot;
data/proftpd-dfsg-1.3.7a/tests/api/help.c:37: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/help.c:44: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/inet.c:45: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.
  use_resolver = getenv("PR_USE_DNS_RESOLVER");
data/proftpd-dfsg-1.3.7a/tests/api/inet.c:50: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/inet.c:58: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/inet.c:532: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.
  if (getenv("CIRRUS_CLONE_DEPTH") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/inet.c:596: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.
  if (getenv("CIRRUS_CLONE_DEPTH") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/jot.c:39: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/jot.c:45: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/json.c:39: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/json.c:45: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/misc.c:54: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/misc.c:73: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/netacl.c:40: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/netacl.c:47: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/netacl.c:647: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.
  if (getenv("TRAVIS") == NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/netacl.c:775: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.
  if (getenv("TRAVIS") == NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/netacl.c:792: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.
  if (getenv("TRAVIS") == NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/netacl.c:818: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.
  if (getenv("TRAVIS") == NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/netacl.c:835: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.
  if (getenv("TRAVIS") == NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/netaddr.c:40: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/netaddr.c:46: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/netaddr.c:416: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.
  if (getenv("TRAVIS") == NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/netaddr.c:878: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.
  if (getenv("TRAVIS") == NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/netaddr.c:1001: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.
  if (getenv("TRAVIS") == NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:81: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:87: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/parser.c:49: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/parser.c:61: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/pool.c:32: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/pool.c:38: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/privs.c:43: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/privs.c:49: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:45: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/redis.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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:106: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.
  if (getenv("CIRRUS_CLONE_DEPTH") == NULL &&
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:107:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      getenv("TRAVIS") == NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:369: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.
  if (getenv("REDIS_RECONNECT") == NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:576: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.
  if (getenv("CIRRUS_CLONE_DEPTH") != NULL ||
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:577:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      getenv("TRAVIS") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/regexp.c:38: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/regexp.c:44: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/response.c:41: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/response.c:57: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/scoreboard.c:49: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/scoreboard.c:61: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/stubs.c:127: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/stubs.c:141: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/stubs.c:165: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/tests.c:105: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.
  if (getenv("PR_XML_TEST_OUTPUT")) {
data/proftpd-dfsg-1.3.7a/tests/api/tests.c:109: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.
  requested = getenv("PR_TEST_SUITE");
data/proftpd-dfsg-1.3.7a/tests/api/tests.c:139: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.
  requested = getenv("PR_TEST_NOFORK");
data/proftpd-dfsg-1.3.7a/tests/api/tests.c:143:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    requested = getenv("CK_DEFAULT_TIMEOUT");
data/proftpd-dfsg-1.3.7a/tests/api/timers.c:46: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/tests/api/timers.c:53: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.
  if (getenv("TEST_VERBOSE") != NULL) {
data/proftpd-dfsg-1.3.7a/utils/ftpcount.c:110:3:  [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, cmdopts, opts, NULL)
data/proftpd-dfsg-1.3.7a/utils/ftpcount.c:112:3:  [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, cmdopts)
data/proftpd-dfsg-1.3.7a/utils/ftpscrub.c:95:3:  [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, cmdopts, opts, NULL)
data/proftpd-dfsg-1.3.7a/utils/ftpscrub.c:97:3:  [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, cmdopts)
data/proftpd-dfsg-1.3.7a/utils/ftpshut.c:71:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((c = getopt(argc, argv, "Rl:d:")) != -1) {
data/proftpd-dfsg-1.3.7a/utils/ftptop.c:300: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 ((optc = getopt(argc, argv, prgopts)) != -1) {
data/proftpd-dfsg-1.3.7a/utils/ftpwho.c:376:3:  [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, cmdopts, opts, NULL)
data/proftpd-dfsg-1.3.7a/utils/ftpwho.c:378:3:  [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, cmdopts)
data/proftpd-dfsg-1.3.7a/contrib/dist/coverity/modeling.c:50:5:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
int mkstemp(char *template) {
data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/auth-otp.c:199: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 encoded[18], rnd[32];
data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/db.c:262:32:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    *counter = (unsigned long) atol(values[1]);
data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/mod_auth_otp.c:196: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 code_str[9];
data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/otp.c:34: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 hash[EVP_MAX_MD_SIZE], value[8];
data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/t/api/base32.c:85:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    raw = (const unsigned char *) expected_codes[i].raw;
data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/t/api/base32.c:91: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.
    fail_unless(strcmp((char *) encoded, expected_codes[i].encoded) == 0,
data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/t/api/base32.c:113:31:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    encoded = (const unsigned char *) expected_codes[i].encoded;
data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/t/api/base32.c:119: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.
    fail_unless(strcmp((char *) raw, expected_codes[i].raw) == 0,
data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/t/api/otp.c:79:44:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    res = auth_otp_hotp(p, (const unsigned char *) key, key_len,
data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/t/api/otp.c:123:44:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    res = auth_otp_totp(p, (const unsigned char *) key, key_len,
data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/t/api/otp.c:170:44:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    res = auth_otp_totp(p, (const unsigned char *) key, key_len,
data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/t/api/otp.c:218:44:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    res = auth_otp_totp(p, (const unsigned char *) key, key_len,
data/proftpd-dfsg-1.3.7a/contrib/mod_ban.c:92: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 be_name[BAN_STRING_MAXSZ];
data/proftpd-dfsg-1.3.7a/contrib/mod_ban.c:93: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 be_reason[BAN_STRING_MAXSZ];
data/proftpd-dfsg-1.3.7a/contrib/mod_ban.c:94: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 be_message[BAN_STRING_MAXSZ];
data/proftpd-dfsg-1.3.7a/contrib/mod_ban.c:111: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 bee_src[BAN_STRING_MAXSZ];
data/proftpd-dfsg-1.3.7a/contrib/mod_ban.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 bee_message[BAN_STRING_MAXSZ];
data/proftpd-dfsg-1.3.7a/contrib/mod_ban.c:286: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(*key, data, datasz);
data/proftpd-dfsg-1.3.7a/contrib/mod_ban.c:676:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(*value, ptr, *valuesz);
data/proftpd-dfsg-1.3.7a/contrib/mod_ban.c:2108:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        server_port = atoi(ptr + 1);
data/proftpd-dfsg-1.3.7a/contrib/mod_ban.c:2345:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      server_port = atoi(ptr + 1);
data/proftpd-dfsg-1.3.7a/contrib/mod_ban.c:2775: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).
  n = atoi(cmd->argv[2]);
data/proftpd-dfsg-1.3.7a/contrib/mod_ctrls_admin.c:96: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[PR_TUNABLE_BUFFER_SIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_ctrls_admin.c:138:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      port = atoi(ptr + 1);
data/proftpd-dfsg-1.3.7a/contrib/mod_ctrls_admin.c:144:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      port = atoi(ptr + 1);
data/proftpd-dfsg-1.3.7a/contrib/mod_ctrls_admin.c:425:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      level = atoi(reqargv[1]);
data/proftpd-dfsg-1.3.7a/contrib/mod_ctrls_admin.c:577:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      server_port = atoi(tmp + 1);
data/proftpd-dfsg-1.3.7a/contrib/mod_ctrls_admin.c:724:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          kicked_max = atoi(optarg);
data/proftpd-dfsg-1.3.7a/contrib/mod_ctrls_admin.c:824:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          kicked_max = atoi(optarg);
data/proftpd-dfsg-1.3.7a/contrib/mod_ctrls_admin.c:922:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          kicked_max = atoi(optarg);
data/proftpd-dfsg-1.3.7a/contrib/mod_ctrls_admin.c:1123:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      timeout = atoi(reqargv[1]);
data/proftpd-dfsg-1.3.7a/contrib/mod_ctrls_admin.c:1271:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      server_port = atoi(tmp + 1);
data/proftpd-dfsg-1.3.7a/contrib/mod_ctrls_admin.c:1474:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      server_port = atoi(tmp + 1);
data/proftpd-dfsg-1.3.7a/contrib/mod_deflate.c:381:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buf, deflate_zbuf, deflate_zbuflen);
data/proftpd-dfsg-1.3.7a/contrib/mod_deflate.c:410: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(buf, deflate_zbuf, bufsz);
data/proftpd-dfsg-1.3.7a/contrib/mod_deflate.c:534:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(tmp, deflate_zbuf, deflate_zbuflen);
data/proftpd-dfsg-1.3.7a/contrib/mod_deflate.c:889: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).
          level = atoi(val);
data/proftpd-dfsg-1.3.7a/contrib/mod_deflate.c:975:53:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      deflate_next_netio_open = deflate_next_netio->open;
data/proftpd-dfsg-1.3.7a/contrib/mod_digest.c:308: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(md, &crc, sizeof(crc));
data/proftpd-dfsg-1.3.7a/contrib/mod_digest.c:1369: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 mtime_str[256], start_str[256], len_str[256];
data/proftpd-dfsg-1.3.7a/contrib/mod_digest.c:1825: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 link_path[PR_TUNABLE_PATH_MAX];
data/proftpd-dfsg-1.3.7a/contrib/mod_digest.c:1989: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 link_path[PR_TUNABLE_PATH_MAX];
data/proftpd-dfsg-1.3.7a/contrib/mod_dnsbl/mod_dnsbl.c:108:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(&tmp->na_addr.v4.sin_addr,
data/proftpd-dfsg-1.3.7a/contrib/mod_dnsbl/mod_dnsbl.c:129: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 reason[NS_PACKETSZ];
data/proftpd-dfsg-1.3.7a/contrib/mod_dnsbl/mod_dnsbl.c:160:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(reject_reason, (unsigned char *) ns_rr_rdata(rr), len);
data/proftpd-dfsg-1.3.7a/contrib/mod_dynmasq.c:186:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  dynmasq_timer_interval = atoi(cmd->argv[1]);
data/proftpd-dfsg-1.3.7a/contrib/mod_exec.c:265:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    stdin_fd = open("/dev/null", O_RDONLY);
data/proftpd-dfsg-1.3.7a/contrib/mod_exec.c:902:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/proftpd-dfsg-1.3.7a/contrib/mod_exec.c:1134: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 time_str[128], *fmt;
data/proftpd-dfsg-1.3.7a/contrib/mod_geoip.c:166:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char errstr[256];
data/proftpd-dfsg-1.3.7a/contrib/mod_geoip.c:898: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 area_code_str[32], lat_str[64], lon_str[64];
data/proftpd-dfsg-1.3.7a/contrib/mod_ifsession.c:264:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char link_path[PR_TUNABLE_PATH_MAX+1];
data/proftpd-dfsg-1.3.7a/contrib/mod_ifsession.c:513: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 errstr[200] = {'\0'};
data/proftpd-dfsg-1.3.7a/contrib/mod_ifversion.c:312:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char errstr[256];
data/proftpd-dfsg-1.3.7a/contrib/mod_ifversion.c:346: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[PR_TUNABLE_BUFFER_SIZE], *config_line = NULL;
data/proftpd-dfsg-1.3.7a/contrib/mod_ldap.c:2276:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  *((int *) c->argv[0]) = atoi(version);
data/proftpd-dfsg-1.3.7a/contrib/mod_ldap.c:2558: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).
        port = atoi(ptr + 1);
data/proftpd-dfsg-1.3.7a/contrib/mod_load/mod_load.c:531: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 ldavgbuf[40];
data/proftpd-dfsg-1.3.7a/contrib/mod_load/mod_load.c:535: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 (LINUX_LDAV_FILE, O_RDONLY);
data/proftpd-dfsg-1.3.7a/contrib/mod_load/mod_load.c:567:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fp = fopen (NETBSD_LDAV_FILE, "r");
data/proftpd-dfsg-1.3.7a/contrib/mod_load/mod_load.c:858:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      channel = open ("/dev/kmem", 0);
data/proftpd-dfsg-1.3.7a/contrib/mod_load/mod_load.c:1001: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 curr_load_str[16], max_load_str[16];
data/proftpd-dfsg-1.3.7a/contrib/mod_log_forensic.c:141: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(fm_msg, log_msg, log_msglen);
data/proftpd-dfsg-1.3.7a/contrib/mod_log_forensic.c:237: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 server_port_str[32], uid_str[32], gid_str[32], elapsed_str[64],
data/proftpd-dfsg-1.3.7a/contrib/mod_log_forensic.c:562:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char pid_str[32];
data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab.c:970:29:  [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).
    limit->files_in_avail = atoi(c->argv[6]);
data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab.c:971:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    limit->files_out_avail = atoi(c->argv[7]);
data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab.c:972:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    limit->files_xfer_avail = atoi(c->argv[8]);
data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab.c:1626:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char errstr[256] = {'\0'};
data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab.c:1776:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[PR_TUNABLE_BUFFER_SIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab.c:1791:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[PR_TUNABLE_BUFFER_SIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab.c:1806:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[PR_TUNABLE_BUFFER_SIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab.c:1821:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[PR_TUNABLE_BUFFER_SIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab.c:1844:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[PR_TUNABLE_BUFFER_SIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab.c:4511:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(path, O_RDWR|O_CREAT, 0600);
data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab.h:62:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[81];
data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab.h:88:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[81];
data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab_file.c:459:28:  [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 ((tab->tab_handle = open(srcinfo, O_RDWR)) < 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab_file.c:478:28:  [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 ((tab->tab_handle = open(srcinfo, O_RDONLY)) < 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab_ldap.c:108:29:  [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).
  limit->files_in_avail   = atoi(values[6]);
data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab_ldap.c:109:29:  [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).
  limit->files_out_avail  = atoi(values[7]);
data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab_ldap.c:110:29:  [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).
  limit->files_xfer_avail = atoi(values[8]);
data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab_radius.c:117:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  limit->files_in_avail = atoi(values[6]);
data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab_radius.c:118:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  limit->files_out_avail = atoi(values[7]);
data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab_radius.c:119:29:  [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).
  limit->files_xfer_avail = atoi(values[8]);
data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab_sql.c:316:30:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      tally->files_in_used = atol(values[5]);
data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab_sql.c:320:31:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      tally->files_out_used = atol(values[6]);
data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab_sql.c:324:32:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      tally->files_xfer_used = atol(values[7]);
data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab_sql.c:413:31:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      limit->files_in_avail = atol(values[7]);
data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab_sql.c:417:32:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      limit->files_out_avail = atol(values[8]);
data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab_sql.c:421:33:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      limit->files_xfer_avail = atol(values[9]);
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:51: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 data[1];
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:59: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[RADIUS_VECTOR_LEN];
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:60: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 data[2];
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:62: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 _pad[PR_TUNABLE_BUFFER_SIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:432: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).
    *attr_id = atoi(var_cpy);
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:622:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&timeout, attrib->data, attrib_len);
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:671:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&timeout, attrib->data, attrib_len);
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:745:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&uid, attrib->data, attrib_len);
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:793:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&gid, attrib->data, attrib_len);
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:1856: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 buffer[64];
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:1866:30:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
# define MD5_memcpy(a, b, c) memcpy((a), (b), (c))
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:1899: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.
static unsigned char PADDING[64] = {
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:1994:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static void MD5_Final(unsigned char digest[16], MD5_CTX *context) {
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:1995: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 bits[8];
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:2021:54:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 void MD5Transform(uint32_t state[4], unsigned char block[64]) {
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:2150: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 *) output)[i] = (char) value;
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:2201: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(attrib->data, data, datalen);
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:2211: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[EVP_MAX_MD_SIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:2235: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(attrib->data, digest, mac_len);
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:2255:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      unsigned char digest[EVP_MAX_MD_SIZE], replied[EVP_MAX_MD_SIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:2262: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(replied, attrib->data, attrib_len);
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:2314: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 calculated[RADIUS_VECTOR_LEN];
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:2315: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 pwhash[PR_TUNABLE_BUFFER_SIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:2336: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(pwhash, passwd, pwlen);
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:2387: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(attrib->data, pwhash, pwlen);
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:2519: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(&vendor_id, attrib->data, 4);
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:2767:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static unsigned char recvbuf[RADIUS_PACKET_LEN];
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:2860: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 pid_str[16];
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:3063: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 pid_str[16];
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:3246: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 calculated[RADIUS_VECTOR_LEN], replied[RADIUS_VECTOR_LEN];
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:3273: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(replied, resp_packet->digest, RADIUS_VECTOR_LEN);
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:3276: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(resp_packet->digest, req_packet->digest, RADIUS_VECTOR_LEN);
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:3508: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 pid_str[16];
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:3755:36:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    server_port = (unsigned short) atoi(port);
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:3815:36:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    server_port = (unsigned short) atoi(port);
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:3937:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char ngroups_str[32], ngids_str[32];
data/proftpd-dfsg-1.3.7a/contrib/mod_ratio.c:80: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 ftext [64],btext [64];
data/proftpd-dfsg-1.3.7a/contrib/mod_ratio.c:88: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 [PR_TUNABLE_LOGIN_MAX];
data/proftpd-dfsg-1.3.7a/contrib/mod_ratio.c:184: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).
    stats.fstor = atoi(fstor);
data/proftpd-dfsg-1.3.7a/contrib/mod_ratio.c:187: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).
    stats.fretr = atoi(fretr);
data/proftpd-dfsg-1.3.7a/contrib/mod_ratio.c:233: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).
    stats.frate = atoi (frate);
data/proftpd-dfsg-1.3.7a/contrib/mod_ratio.c:235: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).
    stats.fcred = atoi (fcred);
data/proftpd-dfsg-1.3.7a/contrib/mod_ratio.c:237: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).
    stats.brate = atoi (brate);
data/proftpd-dfsg-1.3.7a/contrib/mod_ratio.c:239: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).
    stats.bcred = atoi (bcred);
data/proftpd-dfsg-1.3.7a/contrib/mod_ratio.c:273: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] = {'\0'};
data/proftpd-dfsg-1.3.7a/contrib/mod_ratio.c:396: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] = {'\0'};
data/proftpd-dfsg-1.3.7a/contrib/mod_ratio.c:409:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char usrstr[256] = {'\0'}, *ratname;
data/proftpd-dfsg-1.3.7a/contrib/mod_ratio.c:414: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).
        newfile = fopen(g.ratiotmp, "w");
data/proftpd-dfsg-1.3.7a/contrib/mod_ratio.c:425: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).
    usrfile = fopen(g.ratiofile, "r");
data/proftpd-dfsg-1.3.7a/contrib/mod_ratio.c:437:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            ulfiles = atoi(tok);
data/proftpd-dfsg-1.3.7a/contrib/mod_ratio.c:455:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            dlfiles = atoi(tok);
data/proftpd-dfsg-1.3.7a/contrib/mod_ratio.c:497: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).
    newfile = fopen(g.ratiotmp, "rb");
data/proftpd-dfsg-1.3.7a/contrib/mod_ratio.c:504: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).
    usrfile = fopen(g.ratiofile, "wb");
data/proftpd-dfsg-1.3.7a/contrib/mod_ratio.c:580:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/proftpd-dfsg-1.3.7a/contrib/mod_ratio.c:626: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 sbuf1[128] = {'\0'}, sbuf2[128] = {'\0'},
data/proftpd-dfsg-1.3.7a/contrib/mod_ratio.c:633:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	usrfile = fopen(g.ratiofile, "r");
data/proftpd-dfsg-1.3.7a/contrib/mod_ratio.c:651: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).
          usrfile = fopen(g.ratiofile, "r");
data/proftpd-dfsg-1.3.7a/contrib/mod_ratio.c:663:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
              ulfiles = atoi(tok);
data/proftpd-dfsg-1.3.7a/contrib/mod_ratio.c:681:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
              dlfiles = atoi(tok);
data/proftpd-dfsg-1.3.7a/contrib/mod_ratio.c:718: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).
          newfile = fopen(g.ratiotmp, "w");
data/proftpd-dfsg-1.3.7a/contrib/mod_ratio.c:729: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).
          usrfile = fopen(g.ratiofile, "r");
data/proftpd-dfsg-1.3.7a/contrib/mod_ratio.c:746:25:  [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).
              newfile = fopen(g.ratiotmp, "rb");
data/proftpd-dfsg-1.3.7a/contrib/mod_ratio.c:747:25:  [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).
              usrfile = fopen(g.ratiofile, "wb");
data/proftpd-dfsg-1.3.7a/contrib/mod_ratio.c:802:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[128] = {'\0'};
data/proftpd-dfsg-1.3.7a/contrib/mod_readme.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 time_str[32] = {'\0'};
data/proftpd-dfsg-1.3.7a/contrib/mod_rewrite.c:111: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 rewrite_vars[REWRITE_MAX_VARS][13] = {
data/proftpd-dfsg-1.3.7a/contrib/mod_rewrite.c:321:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char time_str[32];
data/proftpd-dfsg-1.3.7a/contrib/mod_rewrite.c:977:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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] = {'\0'}, *ptr;
data/proftpd-dfsg-1.3.7a/contrib/mod_rewrite.c:1364: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).
    fifo_lockfd = open(fifo_lockname, O_RDWR|O_CREAT, 0666);
data/proftpd-dfsg-1.3.7a/contrib/mod_rewrite.c:1877: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(fifo, O_RDWR|O_NONBLOCK);
data/proftpd-dfsg-1.3.7a/contrib/mod_rewrite.c:1998:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static unsigned char utf8_val[PR_TUNABLE_BUFFER_SIZE] = {'\0'};
data/proftpd-dfsg-1.3.7a/contrib/mod_rewrite.c:2251: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 errstr[200] = {'\0'};
data/proftpd-dfsg-1.3.7a/contrib/mod_rewrite.c:2374:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  max_replace = atoi(cmd->argv[1]);
data/proftpd-dfsg-1.3.7a/contrib/mod_rewrite.c:2572:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char errstr[200] = {'\0'};
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/agent.c:87: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 msg[AGENT_REQUEST_MSGSZ], *buf, *ptr;
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/auth-kbdint.c:176: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).
    res = driver->open(driver, user);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/auth.c:174: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 interp_path[PR_TUNABLE_PATH_MAX + 1];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/blacklist.c:34:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char version[8];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/blacklist.c:305: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(blacklist_path, O_RDONLY);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/channel.c:264: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(buf, db->buf, payload_len);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/channel.c:430: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 chan_str[16];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/channel.c:666: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 chan_str[16];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/channel.c:1132: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 adjust_str[32];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/channel.c:1592: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(buf2, buf, payload_len);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/channel.c:1649: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(db->buf, buf, buflen);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/cipher.c:741:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      ((unsigned char *) buf)[i], ((unsigned char *) buf)[i+1],
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/cipher.c:741:46:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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)[i], ((unsigned char *) buf)[i+1],
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/cipher.c:742:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      ((unsigned char *) buf)[i+2], ((unsigned char *) buf)[i+3],
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/cipher.c:742:48:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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)[i+2], ((unsigned char *) buf)[i+3],
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/cipher.c:743:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      ((unsigned char *) buf)[i+4], ((unsigned char *) buf)[i+5],
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/cipher.c:743:48:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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)[i+4], ((unsigned char *) buf)[i+5],
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/cipher.c:744:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      ((unsigned char *) buf)[i+6], ((unsigned char *) buf)[i+7]);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/cipher.c:744:48:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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)[i+6], ((unsigned char *) buf)[i+7]);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/compress.c:225: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 buf[16384], *input;
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/compress.c:242: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(input, pkt->payload, input_len);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/compress.c:288:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(tmp, payload, payload_len);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/compress.c:294:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(payload + payload_len, buf, copy_len);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/compress.c:324: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(pkt->payload, payload, payload_len);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/compress.c:418: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 buf[16384], *input;
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/compress.c:435: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(input, pkt->payload, input_len);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/compress.c:484:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(tmp, payload, payload_len);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/compress.c:489:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(payload + payload_len, buf, copy_len);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/compress.c:512: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(pkt->payload, payload, payload_len);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/crypto.c:202: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 counter[BF_BLOCK];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/crypto.c:238: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(bce->counter, iv, BF_BLOCK);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/crypto.c:261: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 buf[BF_BLOCK];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/crypto.c:292: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(&(ctr[0]), bce->counter, sizeof(BF_LONG));
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/crypto.c:293: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(&(ctr[1]), bce->counter + sizeof(BF_LONG), sizeof(BF_LONG));
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/crypto.c:305: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(buf, ctr, BF_BLOCK);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/crypto.c:361: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 counter[8];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/crypto.c:406: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(material, ptr, 8);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/crypto.c:414: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(dce->counter, iv, 8);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/crypto.c:437: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 buf[8];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/crypto.c:454: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(&(ctr[0]), dce->counter, sizeof(DES_LONG));
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/crypto.c:455: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(&(ctr[1]), dce->counter + sizeof(DES_LONG), sizeof(DES_LONG));
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/crypto.c:474: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(buf, ctr, 8);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/crypto.c:537: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 counter[AES_BLOCK_SIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/crypto.c:538: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 enc_counter[AES_BLOCK_SIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/crypto.c:575: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(ace->counter, iv, AES_BLOCK_SIZE);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/crypto.c:600: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 buf[AES_BLOCK_SIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/crypto.c:813: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 nonce[8];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/crypto.c:829: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 nonce[8];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/display.c:64: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[PR_TUNABLE_BUFFER_SIZE], *msg = "";
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/display.c:72: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 mg_size[12] = {'\0'}, mg_size_units[12] = {'\0'},
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/display.c:74: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 mg_class_limit[12] = {'\0'}, mg_cur[12] = {'\0'},
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/display.c:216: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 time_str[128], *fmt;
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:1169:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char num[32];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:1216: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(&val, *buf, sizeof(uint16_t));
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:1248: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(name, *buf, namelen);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:1292: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, &val, len);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:1818: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[PR_TUNABLE_BUFFER_SIZE], *ptr;
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:2538: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(ptr, fxb->ptr, resp_len);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:2668: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 mode_str[12];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:2731: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 listing[1024], *mode_str, time_str[64];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:2836: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(fxd->st, &st, sizeof(struct stat));
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:3218:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(tmp_data, curr_buf, tmp_datalen);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:3229:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(curr_buf, tmp_data, tmp_datalen);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:3453: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(fxp->payload + fxp->payload_len, buf, buflen);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:3476: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(fxp->payload + fxp->payload_len, buf, payload_remaining);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:3503: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(fxp->payload + fxp->payload_len, buf, buflen);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:4013: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 link_path[PR_TUNABLE_PATH_MAX];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:4384:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      unsigned char digest[EVP_MAX_MD_SIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:4402: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[EVP_MAX_MD_SIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:6279: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).
  val = atoi(version_str);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:6567: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(&xfer_start_time, &(session.xfer.start_time),
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:6671: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(&(session.xfer.start_time), &xfer_start_time, sizeof(struct timeval));
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:7680: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 version_str[16];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:9062:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char link_path[PR_TUNABLE_PATH_MAX];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:9359: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(fxh->fh_st, &st, sizeof(struct stat));
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:9525: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 link_path[PR_TUNABLE_PATH_MAX];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:10492: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[PR_TUNABLE_PATH_MAX + 1];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:11857: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 link_path[PR_TUNABLE_PATH_MAX];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:12142: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 link_path[PR_TUNABLE_PATH_MAX];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:12363: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 link_path[PR_TUNABLE_PATH_MAX];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:12752: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 cmd_arg[256], *file, *name, *ptr2;
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/interop.c:424: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 errmsg[256];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/kex.c:258: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.
static unsigned char kex_digest_buf[EVP_MAX_MD_SIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/kex.c:1502: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(pref, names, i);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/kex.c:2466: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(kex->client_kexinit_payload, pkt->payload, pkt->payload_len);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/kex.c:2516: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 cookie[16];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/kex.c:2600: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(kex->server_kexinit_payload, pkt->payload + 1, pkt->payload_len - 1);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/kex.c:2808:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy((char *) kex->h, h, kex->hlen);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/kex.c:3046:25:  [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).
      kex_dhparams_fp = fopen(dhparam_path, "r");
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/kex.c:3442:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy((char *) kex->h, h, kex->hlen);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/kex.c:3597: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(kex->rsa_encrypted, encrypted, encrypted_len);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/kex.c:3746:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy((char *) kex->h, h, kex->hlen);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/kex.c:3854: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 const unsigned char basepoint[CURVE25519_SIZE] = {9};
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/kex.c:3855: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 zero_curve25519[CURVE25519_SIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/kex.c:3879: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 zero_curve25519[CURVE25519_SIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/kex.c:4057: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 server_curve25519[CURVE25519_SIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/kex.c:4058: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 server_key[CURVE25519_SIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/kex.c:4125:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy((char *) kex->h, h, kex->hlen);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/kex.c:4321:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy((char *) kex->h, h, kex->hlen);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/keys.c:333:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char nbuf[32];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/keys.c:335:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *stdin_argv[4];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/keys.c:624: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 begin_buf[SFTP_OPENSSH_BEGIN_LEN], end_buf[SFTP_OPENSSH_END_LEN];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/keys.c:739: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 prompt[256];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/keys.c:757:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fd = open(path, O_RDONLY);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/keys.c:814:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  prompt_fd = open("/dev/null", O_WRONLY);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/keys.c:844:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[PEM_BUFSIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/keys.c:2326:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[4];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/keys.c:3277: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(*key, tmp_key, *keylen);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/keys.c:3374:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fd = open(path, O_RDONLY, 0);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/keys.c:3684: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, ptr, *datalen);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/keys.c:3900: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 dgst[EVP_MAX_MD_SIZE], *sig_data;
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/keys.c:4038: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 dgst[EVP_MAX_MD_SIZE], *sig_data;
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/keys.c:4165: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 dgst[EVP_MAX_MD_SIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/keys.c:4445: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, res, *siglen);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/keys.c:4559: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[EVP_MAX_MD_SIZE], *sig;
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/keys.c:4703: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[EVP_MAX_MD_SIZE], *sig;
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/keys.c:4838: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[EVP_MAX_MD_SIZE], *sig;
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/keys.c:5056: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(signed_msg, sig, sig_len);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/keys.c:5057: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(signed_msg + sig_len, sig_data, sig_datalen);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/mac.c:279: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 nonce[8], *nonce_ptr;
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/mac.c:352:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          ((unsigned char *) mac)[i], ((unsigned char *) mac)[i+1],
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/mac.c:352:50:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          ((unsigned char *) mac)[i], ((unsigned char *) mac)[i+1],
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/mac.c:353:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          ((unsigned char *) mac)[i+2], ((unsigned char *) mac)[i+3],
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/mac.c:353:52:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *) mac)[i+2], ((unsigned char *) mac)[i+3],
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/mac.c:354:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          ((unsigned char *) mac)[i+4], ((unsigned char *) mac)[i+5],
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/mac.c:354:52:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *) mac)[i+4], ((unsigned char *) mac)[i+5],
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/mac.c:355:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          ((unsigned char *) mac)[i+6], ((unsigned char *) mac)[i+7]);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/mac.c:355:52:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *) mac)[i+6], ((unsigned char *) mac)[i+7]);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/mac.c:391: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(pkt->mac, mac_data, mac_len);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/mod_sftp.c:85:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[256], *banner = NULL;
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/mod_sftp.c:235: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[256];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/mod_sftp.c:493:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  count = atoi(cmd->argv[1]);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/mod_sftp.c:499:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  interval = atoi(cmd->argv[2]);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/mod_sftp.c:543:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char errstr[200];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/mod_sftp.c:565: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 *arg, units[3];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/mod_sftp.c:636: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 *arg, units[3];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/mod_sftp.c:1328:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      nbits = atoi(cmd->argv[++i]);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/mod_sftp.c:1339:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      nbits = atoi(cmd->argv[++i]);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/mod_sftp.c:1350:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      nbits = atoi(cmd->argv[++i]);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/mod_sftp.c:1554:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    rekey_interval = atoi(cmd->argv[2]);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/mod_sftp.c:1588:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    rekey_timeout = atoi(cmd->argv[4]);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/mod_sftp.c:1897: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[PR_TUNABLE_BUFFER_SIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/msg.c:42: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.
static unsigned char msg_buf[8 * 1024];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/msg.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(byte, *buf, sizeof(char));
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/msg.c:133:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(*data, *buf, datalen);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/msg.c:174: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(val, *buf, sizeof(uint32_t));
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/msg.c:197: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 data[8];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/msg.c:345: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(*str, *buf, data_len);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/msg.c:465:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(*buf, &byte, len);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/msg.c:493:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(*buf, data, datalen);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/msg.c:518: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, &val, len);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/msg.c:527: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 data[8];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/packet.c:455:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[SFTP_MAX_PACKET_LEN];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/packet.c:831: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 buf[SFTP_MAX_PACKET_LEN];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/packet.c:1098: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 buf[SFTP_MAX_PACKET_LEN * 2], mesg_type;
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/rfc4716.c:61:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char linebuf[75], *line = "", *res;
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/rfc4716.c:244: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 chunk[1024], *data = NULL;
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/rfc4716.c:295:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(key->key_data, data, datalen);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/rfc4716.c:487: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[PR_TUNABLE_PATH_MAX+1], *path;
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/scp.c:466: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, &(data[1]), i);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/scp.c:722: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 link_path[PR_TUNABLE_PATH_MAX];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/scp.c:1686: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 ctrl_msg[64];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/scp.c:1723: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 ctrl_msg[1536];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/scp.c:1761: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 ctrl_msg[1536];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/scp.c:1964: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 link_path[PR_TUNABLE_PATH_MAX];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/scp.c:2078: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 link_path[PR_TUNABLE_PATH_MAX];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/session.c:47: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_id, hash, hashlen);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/umac.c:202:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(dst_buf,out_buf,AES_BLOCK_LEN);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/umac.c:209:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(dst_buf,out_buf,nbytes);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/umac.c:256:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(tmp_nonce_lo, &(nonce[4]), sizeof(UINT32));
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/umac.c:626:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(hc->data+j, buf, i);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/umac.c:641: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(hc->data + j, buf, nbytes);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/umac.c:980:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ahc->poly_key_8+i, buf+24*i, 8);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/umac.c:990:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(ahc->ip_keys+4*i, buf+(8*i+4)*sizeof(UINT64),
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/umac.c:1166:68:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int umac_final(struct umac_ctx *ctx, unsigned char tag[], unsigned char nonce[8])
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/umac.c:1225:68:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int umac_final(struct umac_ctx *ctx, unsigned char tag[], unsigned char nonce[8])
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/umac.h:70:68:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int umac_final(struct umac_ctx *ctx, unsigned char tag[], unsigned char nonce[8]);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/umac.h:87:71:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int umac128_final(struct umac_ctx *ctx, unsigned char tag[], unsigned char nonce[8]);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/utf8.c:205: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 *inbuf, outbuf[PR_TUNABLE_PATH_MAX*2], *res = NULL;
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/utf8.c:231:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(inbuf, str, inlen);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/utf8.c:263: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(res, outbuf, outlen);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/utf8.c:274: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 *inbuf, outbuf[PR_TUNABLE_PATH_MAX*2], *res;
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/utf8.c:290: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(inbuf, str, inlen);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/utf8.c:322: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(res, outbuf, outlen);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp_pam.c:110: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 sftppam_tty[32];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp_sql.c:82: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 linebuf[SFTP_SQL_BUFSZ], *line = "", *data;
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp_sql.c:149: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(linebuf, data, linelen);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp_sql.c:208:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char chunk[SFTP_SQL_BUFSZ], *data = NULL;
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp_sql.c:269: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(key->key_data, data, datalen);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp_sql.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.
        char chunk[SFTP_SQL_BUFSZ], *data = NULL;
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp_sql.c:368:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(key->key_data, data, datalen);
data/proftpd-dfsg-1.3.7a/contrib/mod_shaper.c:126: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 mtext[1];
data/proftpd-dfsg-1.3.7a/contrib/mod_shaper.c:255: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(&prio, msg->mtext, sizeof(unsigned int));
data/proftpd-dfsg-1.3.7a/contrib/mod_shaper.c:256: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(&downrate, msg->mtext + sizeof(unsigned int), sizeof(long double));
data/proftpd-dfsg-1.3.7a/contrib/mod_shaper.c:257: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(&uprate, msg->mtext + sizeof(unsigned int) + sizeof(long double),
data/proftpd-dfsg-1.3.7a/contrib/mod_shaper.c:299: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(msg->mtext, &prio, sizeof(unsigned int));
data/proftpd-dfsg-1.3.7a/contrib/mod_shaper.c:300: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(msg->mtext + sizeof(unsigned int), &downrate, sizeof(long double));
data/proftpd-dfsg-1.3.7a/contrib/mod_shaper.c:301: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(msg->mtext + sizeof(unsigned int) + sizeof(long double), &uprate,
data/proftpd-dfsg-1.3.7a/contrib/mod_shaper.c:1287:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      int shares = atoi(reqargv[i+1]);
data/proftpd-dfsg-1.3.7a/contrib/mod_shaper.c:1304: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).
      int prio = atoi(reqargv[i+1]);
data/proftpd-dfsg-1.3.7a/contrib/mod_shaper.c:1349:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      int shares = atoi(reqargv[i+1]);
data/proftpd-dfsg-1.3.7a/contrib/mod_shaper.c:1394:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      int shares = atoi(reqargv[i+1]);
data/proftpd-dfsg-1.3.7a/contrib/mod_shaper.c:1539: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).
      downincr = atoi(reqargv[i+1]);
data/proftpd-dfsg-1.3.7a/contrib/mod_shaper.c:1554:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      prio = atoi(reqargv[i+1]);
data/proftpd-dfsg-1.3.7a/contrib/mod_shaper.c:1576:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      incr = atoi(reqargv[i+1]);
data/proftpd-dfsg-1.3.7a/contrib/mod_shaper.c:1600: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).
      upincr = atoi(reqargv[i+1]);
data/proftpd-dfsg-1.3.7a/contrib/mod_shaper.c:1821:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      int shares = atoi(cmd->argv[i+1]);
data/proftpd-dfsg-1.3.7a/contrib/mod_shaper.c:1830: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).
      int prio = atoi(cmd->argv[i+1]);
data/proftpd-dfsg-1.3.7a/contrib/mod_shaper.c:1855:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      int shares = atoi(cmd->argv[i+1]);
data/proftpd-dfsg-1.3.7a/contrib/mod_shaper.c:1880:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      int shares = atoi(cmd->argv[i+1]);
data/proftpd-dfsg-1.3.7a/contrib/mod_shaper.c:1986:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      downshares = atoi(shareno);
data/proftpd-dfsg-1.3.7a/contrib/mod_shaper.c:1990:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      prio = atoi(cmd->argv[i+1]);
data/proftpd-dfsg-1.3.7a/contrib/mod_shaper.c:2006:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      downshares = upshares = atoi(shareno);
data/proftpd-dfsg-1.3.7a/contrib/mod_shaper.c:2018: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).
      upshares = atoi(shareno);
data/proftpd-dfsg-1.3.7a/contrib/mod_shaper.c:2065:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  shaper_tabfd = open(shaper_tab_path, O_RDWR);
data/proftpd-dfsg-1.3.7a/contrib/mod_site_misc.c:379:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  *year = atoi(ptr);
data/proftpd-dfsg-1.3.7a/contrib/mod_site_misc.c:385: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).
  *month = atoi(ptr);
data/proftpd-dfsg-1.3.7a/contrib/mod_site_misc.c:398:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  *day = atoi(ptr);
data/proftpd-dfsg-1.3.7a/contrib/mod_site_misc.c:411:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  *hour = atoi(ptr);
data/proftpd-dfsg-1.3.7a/contrib/mod_site_misc.c:429:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  *min = atoi(ptr);
data/proftpd-dfsg-1.3.7a/contrib/mod_site_misc.c:444: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).
    *sec = atoi(ptr);
data/proftpd-dfsg-1.3.7a/contrib/mod_site_misc.c:464: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 *tzname_dup[2];
data/proftpd-dfsg-1.3.7a/contrib/mod_site_misc.c:522: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(tzname, tzname_dup, sizeof(tzname_dup));
data/proftpd-dfsg-1.3.7a/contrib/mod_site_misc.c:967: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 link_path[PR_TUNABLE_PATH_MAX];
data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/asn1.c:117:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[16];
data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/asn1.c:954: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 oid_lens[SNMP_ASN1_OID_MAX_LEN];
data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/db.c:552: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 fieldstr[256];
data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/db.c:844:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  db_fd = open(db_path, O_RDWR|O_CREAT, 0600);
data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/mod_snmp.c:544:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  tty_fd = open("/dev/tty", O_RDWR);
data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/mod_snmp.c:1903:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        agent_port = atoi(ptr + 1);
data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/mod_snmp.c:2006:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  count = atoi(cmd->argv[1]);
data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/mod_snmp.c:2045: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).
    notify_port = atoi(ptr + 1);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql.c:762: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(resolved->buf, new_text, new_textlen);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql.c:778:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/proftpd-dfsg-1.3.7a/contrib/mod_sql.c:1048: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(resolved->buf, text, text_len);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql.c:1118: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 buf[EVP_MAX_MD_SIZE*2], mdval[EVP_MAX_MD_SIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_sql.c:2375: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 query[256] = { '\0' };
data/proftpd-dfsg-1.3.7a/contrib/mod_sql.c:2735: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 stmt[SQL_MAX_STMT_LEN+1];
data/proftpd-dfsg-1.3.7a/contrib/mod_sql.c:3143: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 results[SQL_MAX_STMT_LEN+1], *text = NULL;
data/proftpd-dfsg-1.3.7a/contrib/mod_sql.c:3922:21:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      gid = (gid_t) atol(sd->data[(cnt * 3) + 1]);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql.c:4838:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  interval = atoi(cmd->argv[1]);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql.c:5191: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 stmt_buf[4096];
data/proftpd-dfsg-1.3.7a/contrib/mod_sql.c:5274: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 stmt_buf[4096];
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_mysql.c:315: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 num[20] = {'\0'};
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_mysql.c:1735: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 scrambled[256] = {'\0'};
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_odbc.c:343: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 numstr[20];
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_odbc.c:499:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buf[64];
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_odbc.c:537:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buf[64];
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_odbc.c:575:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buf[64];
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_odbc.c:613:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buf[64];
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_odbc.c:651:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buf[64];
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_odbc.c:689:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buf[64];
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_odbc.c:727:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buf[64];
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_passwd.c:243:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  *iter = atoi(iter_str);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_passwd.c:248:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  *len = atoi(len_str);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_passwd.c:1310: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).
  len = atoi(cmd->argv[1]);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_passwd.c:1511:13:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  nrounds = atol(cmd->argv[1]);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_passwd.c:1574: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).
  len = atoi(cmd->argv[1]);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_passwd.c:1824:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      fd = open(path, O_RDONLY|O_NONBLOCK);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_passwd.c:1838:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[512];
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_passwd.c:1862:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(file_salt, buf, nread);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_passwd.c:1869:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(tmp, file_salt, file_salt_len);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_passwd.c:1872:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(tmp, buf, nread);
data/proftpd-dfsg-1.3.7a/contrib/mod_statcache.c:92: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 sce_path[PR_TUNABLE_PATH_MAX+1];
data/proftpd-dfsg-1.3.7a/contrib/mod_statcache.c:758: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(sce->sce_path, path, pathlen + 1);
data/proftpd-dfsg-1.3.7a/contrib/mod_statcache.c:760: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(&(sce->sce_stat), st, sizeof(struct stat));
data/proftpd-dfsg-1.3.7a/contrib/mod_statcache.c:860:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(st, &(sce->sce_stat), sizeof(struct stat));
data/proftpd-dfsg-1.3.7a/contrib/mod_statcache.c:1373:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  res = open(path, flags, PR_OPEN_MODE);
data/proftpd-dfsg-1.3.7a/contrib/mod_statcache.c:1973:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  capacity = atoi(cmd->argv[1]);
data/proftpd-dfsg-1.3.7a/contrib/mod_statcache.c:1975:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[32];
data/proftpd-dfsg-1.3.7a/contrib/mod_statcache.c:2067: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).
  positive_age = atoi(cmd->argv[1]);
data/proftpd-dfsg-1.3.7a/contrib/mod_statcache.c:2078:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    negative_age = atoi(cmd->argv[2]);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:727: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 key_name[16];
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:728: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 cipher_key[32];
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:729: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 hmac_key[32];
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:761: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 fp[EVP_MAX_MD_SIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:808:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fh = fopen(path, "rb");
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:1986:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          switch (((const unsigned char *) buf)[0]) {
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:1996:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          switch (((const unsigned char *) buf)[1]) {
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:2111:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          switch (((const unsigned char *) buf)[0]) {
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:2264:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      switch (((const unsigned char *) buf)[0]) {
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:2268:51:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            unsigned err_code = (((const unsigned char *) buf)[1] << 8) +
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:2269:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
              ((const unsigned char *) buf)[2];
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:2499: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 san_ipstr[INET6_ADDRSTRLEN + 1] = {'\0'};
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:2501: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 san_ipstr[INET_ADDRSTRLEN + 1] = {'\0'};
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:2983:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char nbuf[32];
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:2985:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *stdin_argv[4];
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:3316:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  prompt_fd = open("/dev/null", O_WRONLY);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:3464:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(path, O_RDONLY);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:5969:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:6608: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(key_name, k->key_name, 16);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:6765: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(tls_data_ticket_appdata, appdata, appdata_len);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:8423: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 buf[3];
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:8926: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[512] = {'\0'}, *home = NULL;
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:8973:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fp = fopen(buf, "r");
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:9152:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char oid[PR_TUNABLE_PATH_MAX];
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:9318: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 *heapdata, stackdata[1024];
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:9319: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 rand_file[300];
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:9334:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fp = fopen("/dev/urandom", "r");
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:9581:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[80] = {'\0'};
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:9744:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[10] = {'\0'};
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:10051:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[512];
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:10714:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buf[1024] = {'\0'};
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:10742: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(buf, data, datalen);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:10890:26:  [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).
  res = (tls_sess_cache->open)(tls_sess_cache, info, timeout);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:10932: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[PR_TUNABLE_BUFFER_SIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:11102:26:  [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).
  res = (tls_ocsp_cache->open)(tls_ocsp_cache, info);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:11164: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[PR_TUNABLE_BUFFER_SIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:13975:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[32];
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:14191: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).
      int secs = atoi(cmd->argv[i+1]);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:14232: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).
      int secs = atoi(cmd->argv[i+1]);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:14563: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).
      max_nkeys = atoi(cmd->argv[i+1]);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:14856:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  depth = atoi(cmd->argv[1]);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:15242: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[256], **key_data = NULL;
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:15633: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(path, "r");
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:15677:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char key_buf[PR_TUNABLE_BUFFER_SIZE], *identity, *path;
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:15691:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(path, O_RDONLY);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:16476: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(key, sess_id, sess_id_len);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:16830: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).
        cacertf = fopen(cacertname, "r");
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:16875:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fh = fopen(tls_dsa_cert_file, "r");
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:16958:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fh = fopen(tls_ec_cert_file, "r");
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:17050:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fh = fopen(tls_pkcs12_file, "r");
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:17236:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fh = fopen(tls_rsa_cert_file, "r");
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.h:74:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  int (*open)(struct sess_cache_st *cache, char *info, long timeout);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.h:138:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  int (*open)(struct ocsp_cache_st *cache, char *info);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_fscache.c:237:8:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
  fd = mkstemp(tmpl);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_memcache.c:62: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 sess_data[TLS_MAX_SSL_SESSION_SIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_memcache.c:131: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 fingerprint[EVP_MAX_MD_SIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_memcache.c:133:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char resp_der[TLS_MAX_OCSP_RESPONSE_SIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_memcache.c:265:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(*key, data, datasz);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_memcache.c:590:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(*value, ptr, *valuesz);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_memcache.c:812:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(&max_len, value, valuesz);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_memcache.c:863: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((unsigned char *) entry->sess_id, sess_id, sess_id_len);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_memcache.c:1134: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(&num, value, valuesz);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_memcache.c:1633: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(&max_len, value, valuesz);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_memcache.c:1953: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(&num, value, valuesz);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_redis.c:58: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 sess_data[TLS_MAX_SSL_SESSION_SIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_redis.c:122: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 fingerprint[EVP_MAX_MD_SIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_redis.c:124: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 resp_der[TLS_MAX_OCSP_RESPONSE_SIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_redis.c:668: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(&max_len, value, valuesz);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_redis.c:721: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((unsigned char *) entry->sess_id, sess_id, sess_id_len);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_redis.c:988: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(&num, value, valuesz);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_redis.c:1483: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(&max_len, value, valuesz);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_redis.c:1804: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(&num, value, valuesz);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_shmcache.c:80: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 sess_id[SSL_MAX_SSL_SESSION_ID_LENGTH];
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_shmcache.c:82: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 sess_data[TLS_MAX_SSL_SESSION_SIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_shmcache.c:153: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 fingerprint[EVP_MAX_MD_SIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_shmcache.c:155: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 resp_der[TLS_MAX_OCSP_RESPONSE_SIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_shmcache.c:1011:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy((char *) entry->sess_id, sess_id, sess_id_len);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_shmcache.c:1113: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(entry->sess_id, sess_id, sess_id_len);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_shmcache.c:2029: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(entry->fingerprint, fingerprint, entry->fingerprint_len);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_shmcache.c:2140: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(entry->fingerprint, fingerprint, fingerprint_len);
data/proftpd-dfsg-1.3.7a/contrib/mod_unique_id.c:44:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char base64[64] = {
data/proftpd-dfsg-1.3.7a/contrib/mod_unique_id.c:167: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 buf[id_sz];
data/proftpd-dfsg-1.3.7a/contrib/mod_wrap2/mod_wrap2.c:81:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[WRAP2_BUFFER_SIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_wrap2/mod_wrap2.c:82: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 addr[WRAP2_BUFFER_SIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_wrap2/mod_wrap2.c:91: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[WRAP2_BUFFER_SIZE];        /* access via eval_user(request) */
data/proftpd-dfsg-1.3.7a/contrib/mod_wrap2/mod_wrap2.c:92: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 daemon[WRAP2_BUFFER_SIZE];      /* access via eval_daemon(request) */
data/proftpd-dfsg-1.3.7a/contrib/mod_wrap2/mod_wrap2.c:387:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char both[WRAP2_BUFFER_SIZE] = {'\0'};
data/proftpd-dfsg-1.3.7a/contrib/mod_wrap2_file.c:43: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[MOD_WRAP2_FILE_BUFFER_SIZE] = {'\0'};
data/proftpd-dfsg-1.3.7a/include/ccan-json.h:118:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int json_check(const JsonNode *node, char errmsg[256]);
data/proftpd-dfsg-1.3.7a/include/fsio.h:132:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  int (*open)(pr_fh_t *, const char *, int);
data/proftpd-dfsg-1.3.7a/include/libsupp.h:74:5:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
int mkstemp(char *);
data/proftpd-dfsg-1.3.7a/include/netaddr.h:47: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 na_dnsstr[256];
data/proftpd-dfsg-1.3.7a/include/netaddr.h:51: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 na_ipstr[INET6_ADDRSTRLEN];
data/proftpd-dfsg-1.3.7a/include/netaddr.h:53:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char na_ipstr[INET_ADDRSTRLEN];
data/proftpd-dfsg-1.3.7a/include/netio.h:138:24:  [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).
  pr_netio_stream_t *(*open)(pr_netio_stream_t *, int, int);
data/proftpd-dfsg-1.3.7a/include/os.h:121:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#  define memcpy(d,s,n) bcopy((s),(d),(n))
data/proftpd-dfsg-1.3.7a/include/os.h:121:25:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#  define memcpy(d,s,n) bcopy((s),(d),(n))
data/proftpd-dfsg-1.3.7a/include/os.h:122:26:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#  define memmove(d,s,n) bcopy((s),(d),(n))
data/proftpd-dfsg-1.3.7a/include/os.h:285:10:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
# define bcopy(s,d,n)	memcpy((d),(s),(n))
data/proftpd-dfsg-1.3.7a/include/os.h:285: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.
# define bcopy(s,d,n)	memcpy((d),(s),(n))
data/proftpd-dfsg-1.3.7a/include/proftpd.h:88: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 cwd[PR_TUNABLE_PATH_MAX];	/* Current working directory */
data/proftpd-dfsg-1.3.7a/include/proftpd.h:89: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 vwd[PR_TUNABLE_PATH_MAX];	/* Current virtual working directory */
data/proftpd-dfsg-1.3.7a/include/scoreboard.h:61:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char sce_user[32];
data/proftpd-dfsg-1.3.7a/include/scoreboard.h:64: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 sce_server_addr[80], sce_server_label[32];
data/proftpd-dfsg-1.3.7a/include/scoreboard.h:67: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 sce_client_addr[INET6_ADDRSTRLEN];
data/proftpd-dfsg-1.3.7a/include/scoreboard.h:69: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 sce_client_addr[INET_ADDRSTRLEN];
data/proftpd-dfsg-1.3.7a/include/scoreboard.h:71:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char sce_client_name[PR_TUNABLE_SCOREBOARD_BUFFER_SIZE];
data/proftpd-dfsg-1.3.7a/include/scoreboard.h:73: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 sce_class[32];
data/proftpd-dfsg-1.3.7a/include/scoreboard.h:74: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 sce_protocol[32];
data/proftpd-dfsg-1.3.7a/include/scoreboard.h:75: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 sce_cwd[PR_TUNABLE_SCOREBOARD_BUFFER_SIZE];
data/proftpd-dfsg-1.3.7a/include/scoreboard.h:77: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 sce_cmd[65];
data/proftpd-dfsg-1.3.7a/include/scoreboard.h:78: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 sce_cmd_arg[PR_TUNABLE_SCOREBOARD_BUFFER_SIZE];
data/proftpd-dfsg-1.3.7a/lib/ccan-json.c:105: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(sb->cur, bytes, count);
data/proftpd-dfsg-1.3.7a/lib/ccan-json.c:832:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char throwaway_buffer[4];
data/proftpd-dfsg-1.3.7a/lib/ccan-json.c:1262:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[64];
data/proftpd-dfsg-1.3.7a/lib/ccan-json.c:1343:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int json_check(const JsonNode *node, char errmsg[256])
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:176: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 ((d64)->d_name, (d32)->d_name, NAMLEN (d32) + 1);		      \
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:221:10:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
# ifndef bcopy
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:222:13:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
extern void bcopy ();
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:225:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
# define memcpy(d, s, n)	bcopy ((s), (d), (n))
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:225:26:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
# define memcpy(d, s, n)	bcopy ((s), (d), (n))
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:475: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 onealt[strlen (pattern) - 1];
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:490: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 (onealt, pattern, begin - pattern);
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:548:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	      memcpy (alt_start, p, next - p);
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:549:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	      memcpy (&alt_start[next - p], rest, rest_len);
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:645: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 (drive_spec, pattern, dirlen);
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:661: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 (newp, pattern, dirlen);
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:791:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	      memcpy (newp, home_dir, home_len);
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:792:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	      memcpy (&newp[home_len], &dirname[1], dirlen);
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:814:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	      memcpy (newp, dirname + 1, end_name - dirname);
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:865:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	      memcpy (newp, home_dir, home_len);
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:866:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	      memcpy (&newp[home_len], end_name, rest_len);
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:915:36:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	      pglob->gl_pathv[newcount] = memcpy (dircopy, dirname, len);
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:1068: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 (pglob->gl_pathv[newcount], dir, dir_len);
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:1070: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 (&pglob->gl_pathv[newcount][dir_len + 1],
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:1251:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (new, dirname, dirlen);
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:1253:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&new[dirlen + 1], array[i], eltlen);
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:1289:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (open)
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:1349: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 (fullname, directory, dirlen);
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:1351: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 (&fullname[dirlen + 1], pattern, patlen + 1);
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:1460:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		      memcpy ((__ptr_t) new->name, name, len);
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:1484: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 (names->name, pattern, len);
data/proftpd-dfsg-1.3.7a/lib/glibc-mkstemp.c:37:5:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
int mkstemp (char *tmpl) {
data/proftpd-dfsg-1.3.7a/lib/glibc-mkstemp.c:83:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      fd = open (tmpl, O_RDWR | O_CREAT | O_EXCL, 0600);
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:557: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(((tpl_root_data*)(root->data))->fmt,fmt,strlen(fmt)+1);
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:785:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    if (sz>0) memcpy(datav,data,sz);
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:859:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(&binp,datav,sizeof(tpl_bin*)); /* cp to aligned */
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:868: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.
                      memcpy(&strp,datav,sizeof(char*)); /* cp to aligned */
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:876:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(&atypp,datav,sizeof(tpl_atyp*)); /* cp to aligned */
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:931:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(&binp,c->data,sizeof(tpl_bin*)); /* cp to aligned */
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:937:19:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                  memcpy(&strp,&((char**)c->data)[i],sizeof(char*)); /* cp to aligned */
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:1177: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(&intlflags,dv,sizeof(char));  /* extract flags */
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:1186: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(&intlsz,dv,sizeof(uint32_t));  /* extract internal size */
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:1214:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&flen,dv,sizeof(uint32_t)); /* stored flen */
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:1308: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(&intlsz,dv,sizeof(uint32_t));  /* extract internal size */
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:1329: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(fmt_cpy, fmt, fmt_len);
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:1343:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(fxlensv,dv,sizeof(uint32_t)); 
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:1377:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
           memcpy(&datapeek_ssz,dv,sizeof(uint32_t)); /* get slen */
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:1390:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
             memcpy(datapeek_s, dv, datapeek_ssz-1);
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:1402:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
           memcpy(datapeek_p, dv, datapeek_csz);
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:1577:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(&binp,dv,sizeof(tpl_bin*)); /* cp to aligned */
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:1584: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.
                      memcpy(&strp,dv,sizeof(char*)); /* cp to aligned */
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:1601:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(&atypp,dv,sizeof(tpl_atyp*)); /* cp to aligned */
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:1633:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&num,dv,sizeof(uint32_t));
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:1661:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(&slen,dv,sizeof(uint32_t));
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:1673: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.
                      memcpy(&slen,dv,sizeof(uint32_t));
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:1717:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd=open(filename,O_CREAT|O_TRUNC|O_RDWR,perms);
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:1747: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 ( (mr->fd = open(filename, O_RDONLY)) == -1 ) {
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:1805:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(child->data,child->addr,tpl_types[child->type].sz * child->num);
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:1815:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(str,((tpl_bin*)child->addr)->addr,slen);
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:1829:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(child->data,&bin,sizeof(tpl_bin*));
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:1849:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(str,caddr,slen); /* include \0 */
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:1857:19:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                  memcpy(cdata,&str,sizeof(char*));
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:1986: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.
                        memcpy(caddr,dv,tpl_types[c->type].sz);
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:1992:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(c->addr, dv, tpl_types[c->type].sz * c->num);
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:1997:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(&slen,dv,sizeof(uint32_t));
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:2005:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                if (slen>0) memcpy(str,dv,slen);
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:2006:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(&(((tpl_bin*)c->addr)->addr),&str,sizeof(void*));
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:2007:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(&(((tpl_bin*)c->addr)->sz),&slen,sizeof(uint32_t));
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:2012:19:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                  memcpy(&slen,dv,sizeof(uint32_t));
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:2021:33:  [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 (slen>1) memcpy(str,dv,slen-1);
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:2025:19:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                  memcpy(&((char**)c->addr)[fidx],&str,sizeof(char*));
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:2054:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy( &((tpl_atyp*)(c->data))->num, dv, sizeof(uint32_t));
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:2099:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(&slen,dv,sizeof(uint32_t));
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:2107:19:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                  memcpy(&slen,dv,sizeof(uint32_t));
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:2130:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy( &((tpl_atyp*)(c->data))->num, dv, sizeof(uint32_t));
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:2159:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char exit_msg[100];
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:2215:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char preamble[8];
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:2236:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&tpllen,&preamble[4],4);
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:2257: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(*img,preamble,8);  /* copy preamble to output buffer */
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:2284:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[TPL_GATHER_BUFLEN], *img, *tpl;
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:2327:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(img + (*gs)->len, buf, rc);
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:2345:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(&tpllen,&tpl[4],4);
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:2379:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy( (*gs)->img, tpl, img+catlen - tpl);
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:2412:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(img + (*gs)->len, buf, len);
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:2430:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&tpllen,&tpl[4],4);
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:2464:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy( (*gs)->img, tpl, img+catlen - tpl);
data/proftpd-dfsg-1.3.7a/lib/libltdl/argz.c:69: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 (argz + *pargz_len, buf, buf_len);
data/proftpd-dfsg-1.3.7a/lib/libltdl/argz.c:166: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  (before, entry, entry_len);
data/proftpd-dfsg-1.3.7a/lib/libltdl/libltdl/lt__dirent.h:64: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 d_name[LT_FILENAME_MAX];
data/proftpd-dfsg-1.3.7a/lib/libltdl/loaders/dyld.c:326: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 saveError[256] = "Symbol not found";
data/proftpd-dfsg-1.3.7a/lib/libltdl/loaders/loadlibrary.c:119: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		wpath[MAX_PATH];
data/proftpd-dfsg-1.3.7a/lib/libltdl/lt__alloc.c:86:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    return memcpy (newmem, mem, n);
data/proftpd-dfsg-1.3.7a/lib/libltdl/lt__dirent.c:52: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 file_spec[LT_FILENAME_MAX];
data/proftpd-dfsg-1.3.7a/lib/libltdl/lt_error.c:35:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char	error_strings[LT_ERROR_MAX][LT_ERROR_LEN_MAX + 1] =
data/proftpd-dfsg-1.3.7a/lib/libltdl/ltdl.c:739: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).
  if ((*pfile = fopen (filename, LT_READTEXT_MODE)))
data/proftpd-dfsg-1.3.7a/lib/libltdl/ltdl.c:1006:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(tmp, &str[1], (end - str) - 1);
data/proftpd-dfsg-1.3.7a/lib/libltdl/ltdl.c:1351: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).
	  file = fopen (attempt, LT_READTEXT_MODE);
data/proftpd-dfsg-1.3.7a/lib/libltdl/ltdl.c:1966: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	lsym[LT_SYMBOL_LENGTH];
data/proftpd-dfsg-1.3.7a/lib/libltdl/ltdl.c:2021:7:  [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(sym, "_LTX_");
data/proftpd-dfsg-1.3.7a/lib/pr-syslog.c:107: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 logbuf[PR_TUNABLE_BUFFER_SIZE] = {'\0'};
data/proftpd-dfsg-1.3.7a/lib/pr-syslog.c:116: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 timebuf[32];
data/proftpd-dfsg-1.3.7a/lib/pr-syslog.c:121: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 *saved_tzname[2];
data/proftpd-dfsg-1.3.7a/lib/pr-syslog.c:166: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(tzname, saved_tzname, sizeof(saved_tzname));
data/proftpd-dfsg-1.3.7a/lib/pr-syslog.c:371:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  sockfd = open(PR_PATH_LOG, O_WRONLY);
data/proftpd-dfsg-1.3.7a/lib/pr_fnmatch.c:296:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char s[CHAR_CLASS_MAX_LENGTH + 1];
data/proftpd-dfsg-1.3.7a/lib/pr_fnmatch_loop.c:59:19:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  return (char *) memcpy (dest, src, n) + n;
data/proftpd-dfsg-1.3.7a/lib/pr_fnmatch_loop.c:529:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			    char str[c1];
data/proftpd-dfsg-1.3.7a/lib/pr_fnmatch_loop.c:747:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char str[c1];
data/proftpd-dfsg-1.3.7a/lib/pwgrent.c:50: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 pwdbuf[BUFSIZ];
data/proftpd-dfsg-1.3.7a/lib/pwgrent.c:51: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 *pwdfields[NPWDFIELDS];
data/proftpd-dfsg-1.3.7a/lib/pwgrent.c:101:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[BUFSIZ] = {'\0'};
data/proftpd-dfsg-1.3.7a/lib/pwgrent.c:122: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 *grpfields[NGRPFIELDS];
data/proftpd-dfsg-1.3.7a/lib/pwgrent.c:123: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 *members[MAXMEMBERS+1];
data/proftpd-dfsg-1.3.7a/lib/pwgrent.c:218: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).
  grent.gr_gid = atoi(grpfields[2]);
data/proftpd-dfsg-1.3.7a/lib/vsnprintf.c:69: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 c,sign,tmp[66] = {'\0'};
data/proftpd-dfsg-1.3.7a/lib/vsnprintf.c:310: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	cvtbuf[DECIMAL_STRING_LENGTH] = {'\0'};
data/proftpd-dfsg-1.3.7a/modules/mod_auth.c:870:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char *path, target_path[PR_TUNABLE_PATH_MAX + 1];
data/proftpd-dfsg-1.3.7a/modules/mod_auth.c:935: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 interp_dir[PR_TUNABLE_PATH_MAX + 1];
data/proftpd-dfsg-1.3.7a/modules/mod_auth.c:1149:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char errstr[200] = {'\0'};
data/proftpd-dfsg-1.3.7a/modules/mod_auth.c:1385: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 *chroot_path, target_path[PR_TUNABLE_PATH_MAX+1];
data/proftpd-dfsg-1.3.7a/modules/mod_auth.c:1930: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 curr_server_addr[80] = {'\0'};
data/proftpd-dfsg-1.3.7a/modules/mod_auth.c:2004: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 maxstr[20];
data/proftpd-dfsg-1.3.7a/modules/mod_auth.c:2076:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char curr_server_addr[80] = {'\0'};
data/proftpd-dfsg-1.3.7a/modules/mod_auth.c:2186: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 maxn[20] = {'\0'};
data/proftpd-dfsg-1.3.7a/modules/mod_auth.c:2218: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 maxn[20] = {'\0'};
data/proftpd-dfsg-1.3.7a/modules/mod_auth.c:2247: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 maxn[20] = {'\0'};
data/proftpd-dfsg-1.3.7a/modules/mod_auth.c:2275: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 maxn[20] = {'\0'};
data/proftpd-dfsg-1.3.7a/modules/mod_auth.c:2301: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 maxn[20] = {'\0'};
data/proftpd-dfsg-1.3.7a/modules/mod_auth.c:2776: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, AUTH_ROBOTS_TXT, robots_len);
data/proftpd-dfsg-1.3.7a/modules/mod_auth.c:3079:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char errstr[200] = {'\0'};
data/proftpd-dfsg-1.3.7a/modules/mod_auth_file.c:162:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[PR_TUNABLE_PATH_MAX+1];
data/proftpd-dfsg-1.3.7a/modules/mod_auth_file.c:255: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 pwdbuf[BUFSIZ];
data/proftpd-dfsg-1.3.7a/modules/mod_auth_file.c:256: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 *pwdfields[NPWDFIELDS];
data/proftpd-dfsg-1.3.7a/modules/mod_auth_file.c:326: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 *grpfields[NGRPFIELDS];
data/proftpd-dfsg-1.3.7a/modules/mod_auth_file.c:327: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 *members[MAXMEMBERS+1];
data/proftpd-dfsg-1.3.7a/modules/mod_auth_file.c:439: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).
  grent.gr_gid = atoi(grpfields[2]);
data/proftpd-dfsg-1.3.7a/modules/mod_auth_file.c:622:32:  [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).
      af_group_file->af_file = fopen(af_group_file->af_path, "r");
data/proftpd-dfsg-1.3.7a/modules/mod_auth_file.c:763:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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+1] = {'\0'};
data/proftpd-dfsg-1.3.7a/modules/mod_auth_file.c:862:31:  [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).
      af_user_file->af_file = fopen(af_user_file->af_path, "r");
data/proftpd-dfsg-1.3.7a/modules/mod_auth_file.c:1203: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 fips_enabled[256];
data/proftpd-dfsg-1.3.7a/modules/mod_auth_file.c:1207:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fp = fopen("/proc/sys/crypto/fips_enabled", "r");
data/proftpd-dfsg-1.3.7a/modules/mod_auth_file.c:1478:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char errstr[200] = {'\0'};
data/proftpd-dfsg-1.3.7a/modules/mod_auth_file.c:1603:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char errstr[200] = {'\0'};
data/proftpd-dfsg-1.3.7a/modules/mod_auth_file.c:1631:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char errstr[200] = {'\0'};
data/proftpd-dfsg-1.3.7a/modules/mod_auth_pam.c:247: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 ttyentry[32];
data/proftpd-dfsg-1.3.7a/modules/mod_auth_unix.c:145:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    pwdf = fopen(PASSWD, "r");
data/proftpd-dfsg-1.3.7a/modules/mod_auth_unix.c:165:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    grpf = fopen(GROUP, "r");
data/proftpd-dfsg-1.3.7a/modules/mod_auth_unix.c:877: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 *info[2];
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:198:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[PR_TUNABLE_BUFFER_SIZE] = {'\0'}, *config_line = NULL, *ptr;
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:262: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[PR_TUNABLE_BUFFER_SIZE] = {'\0'}, *config_line = NULL, *ptr;
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:772: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).
    nsecs = atoi(cmd->argv[1]);
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:801:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  port = atoi(cmd->argv[1]);
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:1011:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    max_cmd_interval = atoi(cmd->argv[2]);
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:1054:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    max_connect_interval = atoi(cmd->argv[2]);
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:1134:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      value = atoi(cmd->argv[++i]);
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:1147:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      value = atoi(cmd->argv[++i]);
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:1157:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      value = atoi(cmd->argv[++i]);
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:1189: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).
        idle = atoi(keepalive_spec);
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:1200:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        count = atoi(keepalive_spec);
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:1203:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        intvl = atoi(keepalive_spec);
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:1206:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char val_str[33];
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:1217:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char val_str[33];
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:1228:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char val_str[33];
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:1290: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).
  backlog = atoi(cmd->argv[1]);
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:1299:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[32];
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:1476:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      size = atoi(cmd->argv[i]);
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:1487:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      max_age = atoi(cmd->argv[i]);
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:2079:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char errstr[200] = {'\0'};
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:2141:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char errstr[200] = {'\0'};
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:2168: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).
  pasv_min_port = atoi(cmd->argv[1]);
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:2169: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).
  pasv_max_port = atoi(cmd->argv[2]);
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:2254:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char max[1024];
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:2425: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 errstr[200] = {'\0'};
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:3004: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 errstr[200] = {'\0'};
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:3883: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[INET6_ADDRSTRLEN] = {'\0'};
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:3885: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[INET_ADDRSTRLEN] = {'\0'};
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:4207: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).
  family = atoi(argstr);
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:4321:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  port = atoi(argstr);
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:5661:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[16];
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:6515: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[256];
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:6525: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[256];
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:6535: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[256];
data/proftpd-dfsg-1.3.7a/modules/mod_ctrls.c:391:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                  (char **) (ctrlv[i])->ctrls_cb_resps->elts) < 0) {
data/proftpd-dfsg-1.3.7a/modules/mod_ctrls.c:984:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  freshness = atoi(cmd->argv[1]);
data/proftpd-dfsg-1.3.7a/modules/mod_ctrls.c:1015:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  nsecs = atoi(cmd->argv[1]);
data/proftpd-dfsg-1.3.7a/modules/mod_ctrls.c:1061:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  nclients = atoi(cmd->argv[1]);
data/proftpd-dfsg-1.3.7a/modules/mod_delay.c:104: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 dv_proto[16];
data/proftpd-dfsg-1.3.7a/modules/mod_delay.c:111: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 d_addr[80];
data/proftpd-dfsg-1.3.7a/modules/mod_delay.c:1215:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[80];
data/proftpd-dfsg-1.3.7a/modules/mod_delay.c:1257:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[80];
data/proftpd-dfsg-1.3.7a/modules/mod_delay.c:1971: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(data, delay_tab.dt_data, datalen);
data/proftpd-dfsg-1.3.7a/modules/mod_dso.c:558: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 ibuf[4], jbuf[4];
data/proftpd-dfsg-1.3.7a/modules/mod_facl.c:727: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(&acl_user_entry, &(acls[i]), sizeof(aclent_t));
data/proftpd-dfsg-1.3.7a/modules/mod_facl.c:731: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(ae_dup, &(acls[i]), sizeof(aclent_t));
data/proftpd-dfsg-1.3.7a/modules/mod_facl.c:734: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(&acl_group_entry, &(acls[i]), sizeof(aclent_t));
data/proftpd-dfsg-1.3.7a/modules/mod_facl.c:738: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(ae_dup, &(acls[i]), sizeof(aclent_t));
data/proftpd-dfsg-1.3.7a/modules/mod_facl.c:741: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(&acl_other_entry, &(acls[i]), sizeof(aclent_t));
data/proftpd-dfsg-1.3.7a/modules/mod_facl.c:744: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(&acl_mask_entry, &(acls[i]), sizeof(aclent_t));
data/proftpd-dfsg-1.3.7a/modules/mod_facl.c:757: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(&ae, &acl_user_entry, sizeof(aclent_t));
data/proftpd-dfsg-1.3.7a/modules/mod_facl.c:770: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(&e, &(((aclent_t *) acl_users->elts)[i]), sizeof(aclent_t));
data/proftpd-dfsg-1.3.7a/modules/mod_facl.c:777: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(&ae, &e, sizeof(aclent_t));
data/proftpd-dfsg-1.3.7a/modules/mod_facl.c:799: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(&ae, &acl_group_entry, sizeof(aclent_t));
data/proftpd-dfsg-1.3.7a/modules/mod_facl.c:818:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(&ae, &acl_group_entry, sizeof(aclent_t));
data/proftpd-dfsg-1.3.7a/modules/mod_facl.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(&e, &(((aclent_t *) acl_groups->elts)[i]), sizeof(aclent_t));
data/proftpd-dfsg-1.3.7a/modules/mod_facl.c:846:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&ae, &e, sizeof(aclent_t));
data/proftpd-dfsg-1.3.7a/modules/mod_facl.c:869:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&ae, &e, sizeof(aclent_t));
data/proftpd-dfsg-1.3.7a/modules/mod_facl.c:895: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(&ae, &acl_other_entry, sizeof(aclent_t));
data/proftpd-dfsg-1.3.7a/modules/mod_facts.c:386: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[PR_TUNABLE_BUFFER_SIZE];
data/proftpd-dfsg-1.3.7a/modules/mod_facts.c:551:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char target[PR_TUNABLE_PATH_MAX+1];
data/proftpd-dfsg-1.3.7a/modules/mod_facts.c:673: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[PR_TUNABLE_BUFFER_SIZE];
data/proftpd-dfsg-1.3.7a/modules/mod_facts.c:810:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  year = atoi(ptr);
data/proftpd-dfsg-1.3.7a/modules/mod_facts.c:823:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  month = atoi(ptr);
data/proftpd-dfsg-1.3.7a/modules/mod_facts.c:837: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).
  day = atoi(ptr);
data/proftpd-dfsg-1.3.7a/modules/mod_facts.c:851:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  hour = atoi(ptr);
data/proftpd-dfsg-1.3.7a/modules/mod_facts.c:865: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).
  min = atoi(ptr);
data/proftpd-dfsg-1.3.7a/modules/mod_facts.c:877: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).
  sec = atoi(ptr);
data/proftpd-dfsg-1.3.7a/modules/mod_ident.c:63: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[256], *ident = NULL;
data/proftpd-dfsg-1.3.7a/modules/mod_log.c:145: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 format_buf[4096] = {'\0'};
data/proftpd-dfsg-1.3.7a/modules/mod_log.c:177: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(lf->lf_format, format_buf, fmt_len);
data/proftpd-dfsg-1.3.7a/modules/mod_log.c:199: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(ptr, format_buf, fmt_len);
data/proftpd-dfsg-1.3.7a/modules/mod_log.c:466: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(log->buf, text, text_len);
data/proftpd-dfsg-1.3.7a/modules/mod_log.c:479:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/proftpd-dfsg-1.3.7a/modules/mod_log.c:726: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(log->buf, text, text_len);
data/proftpd-dfsg-1.3.7a/modules/mod_log.c:740: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 logbuf[EXTENDED_LOG_BUFFER_SIZE] = {'\0'};
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:117: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 cwd[PR_TUNABLE_PATH_MAX+1] = "";
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:183:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[PR_TUNABLE_PATH_MAX + 1], *full_path;
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:265: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 fullpath[PR_TUNABLE_PATH_MAX + 1] = {'\0'};
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:317: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[PR_TUNABLE_BUFFER_SIZE+1];
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:430: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 units[6][2] = 
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:451: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 months[12][4] =
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:460: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 m[PR_TUNABLE_PATH_MAX+1] = {'\0'}, l[PR_TUNABLE_PATH_MAX+1] = {'\0'}, s[16] = {'\0'};
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:463: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 suffix[2];
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:535:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char replace[32];
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:560:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&st, &l_st, sizeof(struct stat));
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:734: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 nameline[(PR_TUNABLE_PATH_MAX * 2) + 128] = {'\0'};
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:735: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 timeline[6] = {'\0'};
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:1104: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 pad[6] = {'\0'};
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:1397: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 cwd_buf[PR_TUNABLE_PATH_MAX + 1] = {'\0'};
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:1928:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pbuffer[PR_TUNABLE_PATH_MAX + 1] = "";
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:2110:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char cwd_buf[PR_TUNABLE_PATH_MAX + 1] = {'\0'};
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:2284: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 replace[32];
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:2335: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 **list, *p, *f,
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:2337: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 cwd_buf[PR_TUNABLE_PATH_MAX + 1] = {'\0'};
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:2899: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 *decoded_path, *target, buf[PR_TUNABLE_PATH_MAX + 1] = {'\0'};
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:3046:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[PR_TUNABLE_PATH_MAX + 1] = {'\0'};
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:3500:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        int maxdepth = atoi(cmd->argv[++i]);
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:3511:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        int maxfiles = atoi(cmd->argv[++i]);
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:3522:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        int maxdirs = atoi(cmd->argv[++i]);
data/proftpd-dfsg-1.3.7a/modules/mod_redis.c:81:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(log->buf, text, text_len);
data/proftpd-dfsg-1.3.7a/modules/mod_redis.c:94:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/proftpd-dfsg-1.3.7a/modules/mod_redis.c:301: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 key_buf[1024];
data/proftpd-dfsg-1.3.7a/modules/mod_redis.c:466: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 key_fmtbuf[1024];
data/proftpd-dfsg-1.3.7a/modules/mod_redis.c:563: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 key_fmtbuf[1024];
data/proftpd-dfsg-1.3.7a/modules/mod_redis.c:672:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          port = atoi(ptr + 1);
data/proftpd-dfsg-1.3.7a/modules/mod_redis.c:682: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).
        port = atoi(ptr + 1);
data/proftpd-dfsg-1.3.7a/modules/mod_redis.c:729: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).
        port = atoi(ptr + 1);
data/proftpd-dfsg-1.3.7a/modules/mod_redis.c:739:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      port = atoi(ptr + 1);
data/proftpd-dfsg-1.3.7a/modules/mod_site.c:588: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(tmpcmd, cmd, sizeof(cmd_rec));
data/proftpd-dfsg-1.3.7a/modules/mod_xfer.c:267: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 server_addr[128];
data/proftpd-dfsg-1.3.7a/modules/mod_xfer.c:326: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 maxn[20];
data/proftpd-dfsg-1.3.7a/modules/mod_xfer.c:398: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 maxn[20];
data/proftpd-dfsg-1.3.7a/modules/mod_xfer.c:1498: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 pid_buf[32];
data/proftpd-dfsg-1.3.7a/modules/mod_xfer.c:1507: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 pid_buf[32];
data/proftpd-dfsg-1.3.7a/modules/mod_xfer.c:1598:13:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
  stou_fd = mkstemp(filename);
data/proftpd-dfsg-1.3.7a/modules/mod_xfer.c:3720:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  count = atoi(cmd->argv[2]);
data/proftpd-dfsg-1.3.7a/modules/mod_xfer.c:3754:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  count = atoi(cmd->argv[2]);
data/proftpd-dfsg-1.3.7a/src/ascii.c:141:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dst, in, inlen);
data/proftpd-dfsg-1.3.7a/src/ascii.c:157:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dst, src, lf_pos);
data/proftpd-dfsg-1.3.7a/src/auth.c:72: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(&u, key, keysz);
data/proftpd-dfsg-1.3.7a/src/auth.c:82: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(&g, key, keysz);
data/proftpd-dfsg-1.3.7a/src/auth.c:1273: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 namebuf[PR_TUNABLE_LOGIN_MAX+1];
data/proftpd-dfsg-1.3.7a/src/auth.c:1329: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 namebuf[PR_TUNABLE_LOGIN_MAX+1];
data/proftpd-dfsg-1.3.7a/src/auth.c:1812:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[512];
data/proftpd-dfsg-1.3.7a/src/auth.c:1816: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).
    fh = fopen(PR_FTPUSERS_PATH, "r");
data/proftpd-dfsg-1.3.7a/src/auth.c:1874:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/proftpd-dfsg-1.3.7a/src/auth.c:1876: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).
    fh = fopen(PR_VALID_SHELL_PATH, "r");
data/proftpd-dfsg-1.3.7a/src/auth.c:2067:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[64];
data/proftpd-dfsg-1.3.7a/src/auth.c:2439: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 hashed[128], *res;
data/proftpd-dfsg-1.3.7a/src/auth.c:2454: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(res, hashed, sizeof(hashed));
data/proftpd-dfsg-1.3.7a/src/configdb.c:171: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[PR_TUNABLE_BUFFER_SIZE] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/ctrls.c:440: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[PR_TUNABLE_BUFFER_SIZE] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/ctrls.c:528: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 reqaction[128] = {'\0'}, *reqarg = NULL;
data/proftpd-dfsg-1.3.7a/src/ctrls.c:791: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 response[PR_TUNABLE_BUFFER_SIZE] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/ctrls.c:1068:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[1] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/ctrls.c:1306:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[1];
data/proftpd-dfsg-1.3.7a/src/ctrls.c:1320: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 control[MINCREDSIZE];
data/proftpd-dfsg-1.3.7a/src/ctrls.c:1387: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(&cred, CMSG_DATA(hdr), sizeof(struct cmsgcred));
data/proftpd-dfsg-1.3.7a/src/ctrls.c:1399: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(&cred, CMSG_DATA(hdr), sizeof(struct sockcred));
data/proftpd-dfsg-1.3.7a/src/ctrls.c:1509:12:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  cl_pid = atol(tmp);
data/proftpd-dfsg-1.3.7a/src/data.c:757:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[64];
data/proftpd-dfsg-1.3.7a/src/data.c:1255:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(cl_buf, buf, buflen);
data/proftpd-dfsg-1.3.7a/src/data.c:1265:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(buf, buf + buflen, adjlen);
data/proftpd-dfsg-1.3.7a/src/data.c:1348: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(session.xfer.buf, cl_buf, buflen);
data/proftpd-dfsg-1.3.7a/src/dirtree.c:2820: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 cbuf[20];
data/proftpd-dfsg-1.3.7a/src/display.c:142: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[PR_TUNABLE_BUFFER_SIZE] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/display.c:153: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 mg_size[12] = {'\0'}, mg_size_units[12] = {'\0'},
data/proftpd-dfsg-1.3.7a/src/display.c:155: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 total_files_in[12] = {'\0'}, total_files_out[12] = {'\0'},
data/proftpd-dfsg-1.3.7a/src/display.c:157: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 mg_class_limit[12] = {'\0'}, mg_cur[12] = {'\0'},
data/proftpd-dfsg-1.3.7a/src/display.c:159: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 mg_xfer_units[12] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/display.c:343: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 time_str[128], *fmt;
data/proftpd-dfsg-1.3.7a/src/encode.c:217:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *inbuf, outbuf[PR_TUNABLE_PATH_MAX*2], *res = NULL;
data/proftpd-dfsg-1.3.7a/src/encode.c:244: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(inbuf, in, inlen);
data/proftpd-dfsg-1.3.7a/src/encode.c:259: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(res, outbuf, *outlen);
data/proftpd-dfsg-1.3.7a/src/encode.c:272:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *inbuf, outbuf[PR_TUNABLE_PATH_MAX*2], *res;
data/proftpd-dfsg-1.3.7a/src/encode.c:299: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(inbuf, in, inlen);
data/proftpd-dfsg-1.3.7a/src/encode.c:314: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(res, outbuf, *outlen);
data/proftpd-dfsg-1.3.7a/src/error.c:473: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 uid[PR_ERROR_BUFSZ];
data/proftpd-dfsg-1.3.7a/src/error.c:486: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 gid[PR_ERROR_BUFSZ];
data/proftpd-dfsg-1.3.7a/src/error.c:496:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char uid[PR_ERROR_BUFSZ], gid[PR_ERROR_BUFSZ];
data/proftpd-dfsg-1.3.7a/src/error.c:562: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 linenum[PR_ERROR_BUFSZ];
data/proftpd-dfsg-1.3.7a/src/error.c:651: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 errnum[PR_ERROR_BUFSZ];
data/proftpd-dfsg-1.3.7a/src/fsio.c:99: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 vwd[PR_TUNABLE_PATH_MAX + 1] = "/";
data/proftpd-dfsg-1.3.7a/src/fsio.c:101: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 cwd[PR_TUNABLE_PATH_MAX + 1] = "/";
data/proftpd-dfsg-1.3.7a/src/fsio.c:268:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  res = open(path, flags, PR_OPEN_MODE);
data/proftpd-dfsg-1.3.7a/src/fsio.c:1327: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(&(sc->sc_stat), st, sizeof(struct stat));
data/proftpd-dfsg-1.3.7a/src/fsio.c:1353: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 cleaned_path[PR_TUNABLE_PATH_MAX+1], pathbuf[PR_TUNABLE_PATH_MAX+1];
data/proftpd-dfsg-1.3.7a/src/fsio.c:1418:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(st, &(sc->sc_stat), sizeof(struct stat));
data/proftpd-dfsg-1.3.7a/src/fsio.c:1474: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[PR_TUNABLE_PATH_MAX + 1], tmp_path[PR_TUNABLE_PATH_MAX + 1];
data/proftpd-dfsg-1.3.7a/src/fsio.c:1525: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 linkbuf[PR_TUNABLE_PATH_MAX + 1];
data/proftpd-dfsg-1.3.7a/src/fsio.c:1595: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 workpath[PR_TUNABLE_PATH_MAX + 1];
data/proftpd-dfsg-1.3.7a/src/fsio.c:1623: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[PR_TUNABLE_BUFFER_SIZE];
data/proftpd-dfsg-1.3.7a/src/fsio.c:1714:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cleaned_path[PR_TUNABLE_PATH_MAX+1], pathbuf[PR_TUNABLE_PATH_MAX+1];
data/proftpd-dfsg-1.3.7a/src/fsio.c:2246: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 cleaned_path[PR_TUNABLE_PATH_MAX] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/fsio.c:2671: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[PR_TUNABLE_LOGIN_MAX+1];
data/proftpd-dfsg-1.3.7a/src/fsio.c:2802: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 curpath[PR_TUNABLE_PATH_MAX + 1]  = {'\0'},
data/proftpd-dfsg-1.3.7a/src/fsio.c:2926: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 linkpath[PR_TUNABLE_PATH_MAX + 1] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/fsio.c:2960:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char tmpbuf[PR_TUNABLE_PATH_MAX + 1] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/fsio.c:3003: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 curpath[PR_TUNABLE_PATH_MAX + 1]  = {'\0'},
data/proftpd-dfsg-1.3.7a/src/fsio.c:3100: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 linkpath[PR_TUNABLE_PATH_MAX + 1] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/fsio.c:3135:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char tmpbuf[PR_TUNABLE_PATH_MAX + 1] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/fsio.c:3178: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 workpath[PR_TUNABLE_PATH_MAX + 1] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/fsio.c:3179: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 curpath[PR_TUNABLE_PATH_MAX + 1]  = {'\0'};
data/proftpd-dfsg-1.3.7a/src/fsio.c:3180: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 namebuf[PR_TUNABLE_PATH_MAX + 1]  = {'\0'};
data/proftpd-dfsg-1.3.7a/src/fsio.c:3610: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 curpath[PR_TUNABLE_PATH_MAX + 1]  = {'\0'},
data/proftpd-dfsg-1.3.7a/src/fsio.c:3721: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 resbuf[PR_TUNABLE_PATH_MAX + 1] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/fsio.c:3767: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 resbuf[PR_TUNABLE_PATH_MAX + 1] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/fsio.c:3828:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[PR_TUNABLE_PATH_MAX + 1] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/fsio.c:4145:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fd = open(path, flags);
data/proftpd-dfsg-1.3.7a/src/fsio.c:4963:36:  [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).
  while (fs && fs->fs_next && !fs->open) {
data/proftpd-dfsg-1.3.7a/src/fsio.c:4969: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).
  fh->fh_fd = (fs->open)(fh, deref, flags);
data/proftpd-dfsg-1.3.7a/src/fsio.c:5024:36:  [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).
  while (fs && fs->fs_next && !fs->open) {
data/proftpd-dfsg-1.3.7a/src/fsio.c:5030: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).
  fh->fh_fd = (fs->open)(fh, name, flags);
data/proftpd-dfsg-1.3.7a/src/fsio.c:7338: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 cwdbuf[PR_TUNABLE_PATH_MAX + 1] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/fsio.c:7452:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if (fs->open) {
data/proftpd-dfsg-1.3.7a/src/fsio.c:7560: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[PR_TUNABLE_BUFFER_SIZE+1];
data/proftpd-dfsg-1.3.7a/src/help.c:89:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *outa[8], *outstr;
data/proftpd-dfsg-1.3.7a/src/help.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 buf[9] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/help.c:105:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          outa[col++] = (char *) helps[i].cmd;
data/proftpd-dfsg-1.3.7a/src/ident.c:53:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[256] = {'\0'}, *tok = NULL, *tmp = NULL;
data/proftpd-dfsg-1.3.7a/src/inet.c:141: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(res, c, sizeof(conn_t));
data/proftpd-dfsg-1.3.7a/src/jot.c:520: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[PR_TUNABLE_PATH_MAX+1], *ptr;
data/proftpd-dfsg-1.3.7a/src/jot.c:1304: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 ts[128];
data/proftpd-dfsg-1.3.7a/src/jot.c:1439:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        resp_num = atoi(resp_code);
data/proftpd-dfsg-1.3.7a/src/jot.c:1495:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[128], *ch;
data/proftpd-dfsg-1.3.7a/src/jot.c:1902: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 ts[128];
data/proftpd-dfsg-1.3.7a/src/lastlog.c:36:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[PR_TUNABLE_PATH_MAX] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/lastlog.c:62:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(path, O_RDWR|O_CREAT, 0600);
data/proftpd-dfsg-1.3.7a/src/lastlog.c:78:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(path, O_RDWR|O_CREAT, 0600);
data/proftpd-dfsg-1.3.7a/src/log.c: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.
static char systemlog_fn[PR_TUNABLE_PATH_MAX] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/log.c:49: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 systemlog_host[256] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/log.c:168:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    *log_fd = open(lf, flags, log_mode);
data/proftpd-dfsg-1.3.7a/src/log.c:209: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).
        *log_fd = open(lf, flags, log_mode);
data/proftpd-dfsg-1.3.7a/src/log.c:256:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    *log_fd = open(lf, flags, log_mode);
data/proftpd-dfsg-1.3.7a/src/log.c:331: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[LOGBUFFER_SIZE] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/log.c:491: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 serverinfo[PR_TUNABLE_BUFFER_SIZE] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/log.c:525:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[LOGBUFFER_SIZE] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/log.c:634:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[LOGBUFFER_SIZE] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/log.c:764: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[LOGBUFFER_SIZE] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/log.c:781: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[LOGBUFFER_SIZE] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/log.c:859: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[LOGBUFFER_SIZE] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/log.c:1039: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[256];
data/proftpd-dfsg-1.3.7a/src/main.c:73: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 shutmsg[81] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/main.c:611: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(v, &start_ms, sizeof(uint64_t));
data/proftpd-dfsg-1.3.7a/src/main.c:1612: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 deny_ts[32];
data/proftpd-dfsg-1.3.7a/src/main.c:1790:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((ttyfd = open("/dev/tty", O_RDWR)) != -1) {
data/proftpd-dfsg-1.3.7a/src/main.c:2371:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      pr_log_setdebuglevel(atoi(optarg));
data/proftpd-dfsg-1.3.7a/src/main.c:2423: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).
          (atoi(optarg) != 1 && atoi(optarg) != 0)) {
data/proftpd-dfsg-1.3.7a/src/main.c:2423:33:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          (atoi(optarg) != 1 && atoi(optarg) != 0)) {
data/proftpd-dfsg-1.3.7a/src/memcache.c:1162: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, data, *valuesz);
data/proftpd-dfsg-1.3.7a/src/memcache.c:1244: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, data, valuesz);
data/proftpd-dfsg-1.3.7a/src/modules.c:168: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[80] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/modules.c:322: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[256];
data/proftpd-dfsg-1.3.7a/src/modules.c:384: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[256];
data/proftpd-dfsg-1.3.7a/src/netacl.c:627: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 masklenstr[64];
data/proftpd-dfsg-1.3.7a/src/netaddr.c:45: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 sess_remote_name[PR_TUNABLE_BUFFER_SIZE];
data/proftpd-dfsg-1.3.7a/src/netaddr.c:58: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 localaddr_str[PR_TUNABLE_BUFFER_SIZE];
data/proftpd-dfsg-1.3.7a/src/netaddr.c:350: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(&saddr->sin_addr, he->h_addr_list[0], he->h_length);
data/proftpd-dfsg-1.3.7a/src/netaddr.c:387:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dst, res, len);
data/proftpd-dfsg-1.3.7a/src/netaddr.c:407:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dst, &res, sizeof(res));
data/proftpd-dfsg-1.3.7a/src/netaddr.c:1123: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(&(na->na_addr.v4), addr, sizeof(struct sockaddr_in));
data/proftpd-dfsg-1.3.7a/src/netaddr.c:1129:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&(na->na_addr.v6), addr, sizeof(struct sockaddr_in6));
data/proftpd-dfsg-1.3.7a/src/netaddr.c:1153: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(&na->na_addr.v4.sin_addr, &in4addr_any, sizeof(struct in_addr));
data/proftpd-dfsg-1.3.7a/src/netaddr.c:1164:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&na->na_addr.v6.sin6_addr, &in6addr_any, sizeof(struct in6_addr));
data/proftpd-dfsg-1.3.7a/src/netaddr.c:1604: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[INET6_ADDRSTRLEN];
data/proftpd-dfsg-1.3.7a/src/netaddr.c:1606: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[INET_ADDRSTRLEN];
data/proftpd-dfsg-1.3.7a/src/netaddr.c:1724:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[INET6_ADDRSTRLEN];
data/proftpd-dfsg-1.3.7a/src/netaddr.c:1726:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[INET_ADDRSTRLEN];
data/proftpd-dfsg-1.3.7a/src/netaddr.c:1760: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 alias[INET6_ADDRSTRLEN];
data/proftpd-dfsg-1.3.7a/src/netaddr.c:1762: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 alias[INET_ADDRSTRLEN];
data/proftpd-dfsg-1.3.7a/src/netaddr.c:1903: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 dns_buf[1024], *name = NULL;
data/proftpd-dfsg-1.3.7a/src/netaddr.c:2021: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[256];
data/proftpd-dfsg-1.3.7a/src/netaddr.c:2358: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(&res->na_addr.v4.sin_addr, get_v4inaddr(na), sizeof(struct in_addr));
data/proftpd-dfsg-1.3.7a/src/netio.c:638:28:  [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).
        res = (ctrl_netio->open)(nstrm, fd, mode);
data/proftpd-dfsg-1.3.7a/src/netio.c:652:36:  [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).
        res = (default_ctrl_netio->open)(nstrm, fd, mode);
data/proftpd-dfsg-1.3.7a/src/netio.c:672:28:  [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).
        res = (data_netio->open)(nstrm, fd, mode);
data/proftpd-dfsg-1.3.7a/src/netio.c:686:36:  [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).
        res = (default_data_netio->open)(nstrm, fd, mode);
data/proftpd-dfsg-1.3.7a/src/netio.c:706:28:  [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).
        res = (othr_netio->open)(nstrm, fd, mode);
data/proftpd-dfsg-1.3.7a/src/netio.c:720:36:  [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).
        res = (default_othr_netio->open)(nstrm, fd, mode);
data/proftpd-dfsg-1.3.7a/src/netio.c:1015: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[PR_RESPONSE_BUFFER_SIZE] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/netio.c:1041: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[PR_RESPONSE_BUFFER_SIZE] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/netio.c:1921:49:  [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 (!netio->abort || !netio->close || !netio->open || !netio->poll ||
data/proftpd-dfsg-1.3.7a/src/pidfile.c:57: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(pidfile_path, O_WRONLY|O_CREAT|O_TRUNC, mode);
data/proftpd-dfsg-1.3.7a/src/pool.c:48: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 pad[32];
data/proftpd-dfsg-1.3.7a/src/pool.c:74: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[PR_TUNABLE_BUFFER_SIZE];
data/proftpd-dfsg-1.3.7a/src/pool.c:295: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 _levelpad[80] = "";
data/proftpd-dfsg-1.3.7a/src/pool.c:357: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[PR_TUNABLE_BUFFER_SIZE];
data/proftpd-dfsg-1.3.7a/src/pool.c:687:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(new_data, arr->elts, arr->nalloc * arr->elt_size);
data/proftpd-dfsg-1.3.7a/src/pool.c:721:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(new_data, dst->elts, dst->nalloc * elt_size);
data/proftpd-dfsg-1.3.7a/src/pool.c:727:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(((char *) dst->elts) + (dst->nelts * elt_size), (char *) src->elts,
data/proftpd-dfsg-1.3.7a/src/pool.c:749: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(res->elts, arr->elts, arr->elt_size * arr->nelts);
data/proftpd-dfsg-1.3.7a/src/proctitle.c:57: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 proc_title_buf[BUFSIZ];
data/proftpd-dfsg-1.3.7a/src/redis.c:665: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(val, prefix, prefixsz);
data/proftpd-dfsg-1.3.7a/src/redis.c:1848:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(new_key, prefix, prefixsz);
data/proftpd-dfsg-1.3.7a/src/redis.c:1849:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(new_key + prefixsz, key, *keysz);
data/proftpd-dfsg-1.3.7a/src/redis.c:2242:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(data, reply->str, reply->len);
data/proftpd-dfsg-1.3.7a/src/redis.c:2809:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(*value, reply->str, reply->len);
data/proftpd-dfsg-1.3.7a/src/redis.c:2901:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(key_data, key_elt->str, key_datasz);
data/proftpd-dfsg-1.3.7a/src/redis.c:2913:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(value_data, value_elt->str, value_datasz);
data/proftpd-dfsg-1.3.7a/src/redis.c:3303: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(key_dup, key_data, key_datasz);
data/proftpd-dfsg-1.3.7a/src/redis.c:3308: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(value_dup, value_data, value_datasz);
data/proftpd-dfsg-1.3.7a/src/redis.c:3420:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(value, reply->str, reply->len);
data/proftpd-dfsg-1.3.7a/src/redis.c:3674:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(*value, reply->str, reply->len);
data/proftpd-dfsg-1.3.7a/src/redis.c:3746:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(value_data, value_elt->str, value_datasz);
data/proftpd-dfsg-1.3.7a/src/redis.c:3919:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(*value, reply->str, reply->len);
data/proftpd-dfsg-1.3.7a/src/redis.c:4075:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(*value, reply->str, reply->len);
data/proftpd-dfsg-1.3.7a/src/redis.c:4565:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(value_data, value_elt->str, value_datasz);
data/proftpd-dfsg-1.3.7a/src/redis.c:5045:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(value_data, value_elt->str, value_datasz);
data/proftpd-dfsg-1.3.7a/src/redis.c:5507:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      port = atoi(port_str);
data/proftpd-dfsg-1.3.7a/src/response.c:34: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 resp_buf[PR_RESPONSE_BUFFER_SIZE] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/response.c:337: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[PR_TUNABLE_BUFFER_SIZE] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/scoreboard.c:37: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 scoreboard_file[PR_TUNABLE_PATH_MAX] = PR_RUN_DIR "/proftpd.scoreboard";
data/proftpd-dfsg-1.3.7a/src/scoreboard.c:40: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 scoreboard_mutex[PR_TUNABLE_PATH_MAX] = PR_RUN_DIR "/proftpd.scoreboard.lck";
data/proftpd-dfsg-1.3.7a/src/scoreboard.c:59:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buf[PR_TUNABLE_SCOREBOARD_BUFFER_SIZE] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/scoreboard.c:534: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).
  scoreboard_fd = open(scoreboard_file, flags|O_CREAT, PR_SCOREBOARD_MODE);
data/proftpd-dfsg-1.3.7a/src/scoreboard.c:538:23:  [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).
      scoreboard_fd = open(scoreboard_file, flags|O_CREAT, PR_SCOREBOARD_MODE);
data/proftpd-dfsg-1.3.7a/src/scoreboard.c:573:27:  [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).
    scoreboard_mutex_fd = open(scoreboard_mutex, flags|O_CREAT,
data/proftpd-dfsg-1.3.7a/src/scoreboard.c:580:31:  [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).
        scoreboard_mutex_fd = open(scoreboard_mutex, flags|O_CREAT,
data/proftpd-dfsg-1.3.7a/src/scoreboard.c:730: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 dir[PR_TUNABLE_PATH_MAX] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/scoreboard.c:1434: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(pr_get_scoreboard(), O_RDWR);
data/proftpd-dfsg-1.3.7a/src/session.c:422: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 ttybuf[32];
data/proftpd-dfsg-1.3.7a/src/sets.c:226: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(n, m, msize);
data/proftpd-dfsg-1.3.7a/src/signals.c:275: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 dir[256];
data/proftpd-dfsg-1.3.7a/src/stash.c:819: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[PR_TUNABLE_BUFFER_SIZE] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/str.c:36: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 *matches[PR_STR_MAX_MATCHES+1], *replaces[PR_STR_MAX_MATCHES+1];
data/proftpd-dfsg-1.3.7a/src/str.c:37: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[PR_TUNABLE_PATH_MAX] = {'\0'}, *pbuf = NULL;
data/proftpd-dfsg-1.3.7a/src/str.c:863: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(item, text, item_len);
data/proftpd-dfsg-1.3.7a/src/str.c:960:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buf[64];
data/proftpd-dfsg-1.3.7a/src/str.c:981:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buf[64];
data/proftpd-dfsg-1.3.7a/src/support.c:298: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 workpath[PR_TUNABLE_PATH_MAX + 1] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/support.c:299: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 realpath_buf[PR_TUNABLE_PATH_MAX + 1] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/support.c:366: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[PR_TUNABLE_PATH_MAX + 1]  = {'\0'};
data/proftpd-dfsg-1.3.7a/src/support.c:367: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 work[PR_TUNABLE_PATH_MAX + 1] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/support.c:393: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[PR_TUNABLE_PATH_MAX + 1]  = {'\0'};
data/proftpd-dfsg-1.3.7a/src/support.c:394: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 work[PR_TUNABLE_PATH_MAX + 1] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/support.c:600: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[PR_TUNABLE_PATH_MAX + 1] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/support.c:629:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[PR_TUNABLE_PATH_MAX+1];
data/proftpd-dfsg-1.3.7a/src/support.c:679: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[PR_TUNABLE_PATH_MAX + 1];
data/proftpd-dfsg-1.3.7a/src/support.c:863: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 *deny_str, *disc_str, *cp, buf[PR_TUNABLE_BUFFER_SIZE+1] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/support.c:864: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 hr[3] = {'\0'}, mn[3] = {'\0'};
data/proftpd-dfsg-1.3.7a/src/support.c:874:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fp = fopen(path, "r");
data/proftpd-dfsg-1.3.7a/src/support.c:899: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).
    tm->tm_year = atoi(safe_token(&cp)) - 1900;
data/proftpd-dfsg-1.3.7a/src/support.c:900: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).
    tm->tm_mon = atoi(safe_token(&cp)) - 1;
data/proftpd-dfsg-1.3.7a/src/support.c:901: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).
    tm->tm_mday = atoi(safe_token(&cp));
data/proftpd-dfsg-1.3.7a/src/support.c:902: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).
    tm->tm_hour = atoi(safe_token(&cp));
data/proftpd-dfsg-1.3.7a/src/support.c:903: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).
    tm->tm_min = atoi(safe_token(&cp));
data/proftpd-dfsg-1.3.7a/src/support.c:904: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).
    tm->tm_sec = atoi(safe_token(&cp));
data/proftpd-dfsg-1.3.7a/src/support.c:924:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        *deny = shuttime - ((atoi(hr) * 3600) + (atoi(mn) * 60));
data/proftpd-dfsg-1.3.7a/src/support.c:924:50:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        *deny = shuttime - ((atoi(hr) * 3600) + (atoi(mn) * 60));
data/proftpd-dfsg-1.3.7a/src/support.c:940:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        *disc = shuttime - ((atoi(hr) * 3600) + (atoi(mn) * 60));
data/proftpd-dfsg-1.3.7a/src/support.c:940:50:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        *disc = shuttime - ((atoi(hr) * 3600) + (atoi(mn) * 60));
data/proftpd-dfsg-1.3.7a/src/support.c:1062: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(dup_tm, sys_tm, sizeof(struct tm));
data/proftpd-dfsg-1.3.7a/src/support.c:1075: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 *tzname_dup[2];
data/proftpd-dfsg-1.3.7a/src/support.c:1129: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(dup_tm, sys_tm, sizeof(struct tm));
data/proftpd-dfsg-1.3.7a/src/support.c:1141: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(tzname, tzname_dup, sizeof(tzname_dup));
data/proftpd-dfsg-1.3.7a/src/support.c:1156:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buf[64];
data/proftpd-dfsg-1.3.7a/src/support.c:1338:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char ref_char[2] = {'\0', '\0'};
data/proftpd-dfsg-1.3.7a/src/table.c:371:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fd = open("/dev/urandom", O_RDONLY|O_NONBLOCK);
data/proftpd-dfsg-1.3.7a/src/table.c:838: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(dup_data, value_data, value_datasz);
data/proftpd-dfsg-1.3.7a/src/table.c:1199: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[PR_TUNABLE_BUFFER_SIZE+1];
data/proftpd-dfsg-1.3.7a/src/trace.c:98: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[TRACE_BUFFER_SIZE];
data/proftpd-dfsg-1.3.7a/src/trace.c:539: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[TRACE_BUFFER_SIZE];
data/proftpd-dfsg-1.3.7a/src/utf8.c:134: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 *inbuf, outbuf[PR_TUNABLE_PATH_MAX*2], *res = NULL;
data/proftpd-dfsg-1.3.7a/src/utf8.c:147: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(inbuf, in, inlen);
data/proftpd-dfsg-1.3.7a/src/utf8.c:157:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(res, outbuf, *outlen);
data/proftpd-dfsg-1.3.7a/src/utf8.c:169: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 *inbuf, outbuf[PR_TUNABLE_PATH_MAX*2], *res;
data/proftpd-dfsg-1.3.7a/src/utf8.c:182: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(inbuf, in, inlen);
data/proftpd-dfsg-1.3.7a/src/utf8.c:192: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(res, outbuf, *outlen);
data/proftpd-dfsg-1.3.7a/src/wtmp.c:67:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      (fdx = open(WTMPX_FILE, O_WRONLY|O_APPEND, 0)) < 0) {
data/proftpd-dfsg-1.3.7a/src/wtmp.c:138: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).
      (fd = open(WTMP_FILE, O_WRONLY|O_APPEND, 0)) < 0) {
data/proftpd-dfsg-1.3.7a/src/xferlog.c:72: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[LOGBUFFER_SIZE] = {'\0'}, fbuf[LOGBUFFER_SIZE] = {'\0'};
data/proftpd-dfsg-1.3.7a/tests/api/data.c:195: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, data, sz);
data/proftpd-dfsg-1.3.7a/tests/api/data.c:310: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(data_test_path, O_RDONLY);
data/proftpd-dfsg-1.3.7a/tests/api/display.c:94:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fh = fopen(path, "w+");
data/proftpd-dfsg-1.3.7a/tests/api/encode.c:63: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 *in_str, junk[1024];
data/proftpd-dfsg-1.3.7a/tests/api/encode.c:100: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 *in_str, junk[1024];
data/proftpd-dfsg-1.3.7a/tests/api/error.c:54: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 errnum[32];
data/proftpd-dfsg-1.3.7a/tests/api/error.c:61:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char uid[32];
data/proftpd-dfsg-1.3.7a/tests/api/error.c:68:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char gid[32];
data/proftpd-dfsg-1.3.7a/tests/api/expr.c:51: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 *expr_argv[4] = { NULL, NULL, NULL, NULL };
data/proftpd-dfsg-1.3.7a/tests/api/expr.c:149: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 *names1[3] = { "foo", "bar", NULL }, *names2[2] = { "test", NULL },
data/proftpd-dfsg-1.3.7a/tests/api/expr.c:194: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 *names1[3] = { "foo", "test", NULL }, *names2[2] = { "test", NULL },
data/proftpd-dfsg-1.3.7a/tests/api/expr.c:241: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 *names1[3] = { "foo", "bar", NULL }, *names2[2] = { "test", NULL },
data/proftpd-dfsg-1.3.7a/tests/api/expr.c:284: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 *names1[3] = { "foo", "test", NULL }, *names2[2] = { "test", NULL },
data/proftpd-dfsg-1.3.7a/tests/api/expr.c:331: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 *names1[3] = { "foo", "bar", NULL }, *names2[2] = { "test", NULL },
data/proftpd-dfsg-1.3.7a/tests/api/expr.c:358: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 *names1[3] = { "foo", "test", NULL }, *names2[2] = { "test", NULL },
data/proftpd-dfsg-1.3.7a/tests/api/fsio.c:108: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 errnum[32];
data/proftpd-dfsg-1.3.7a/tests/api/fsio.c:666: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[PR_TUNABLE_BUFFER_SIZE];
data/proftpd-dfsg-1.3.7a/tests/api/fsio.c:889: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(fsio_test_path, O_CREAT|O_EXCL|O_WRONLY, S_IRUSR|S_IWUSR);
data/proftpd-dfsg-1.3.7a/tests/api/fsio.c:3561:23:  [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).
  fs->open = root_fs->open;
data/proftpd-dfsg-1.3.7a/tests/api/fsio.c:3624: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 res[PR_TUNABLE_PATH_MAX+1], *path, *expected;
data/proftpd-dfsg-1.3.7a/tests/api/fsio.c:3676: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 res[PR_TUNABLE_PATH_MAX+1], *path, *expected;
data/proftpd-dfsg-1.3.7a/tests/api/fsio.c:3739: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[PR_TUNABLE_PATH_MAX+1], *a, *b, *ok;
data/proftpd-dfsg-1.3.7a/tests/api/fsio.c:3978: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[PR_TUNABLE_PATH_MAX], *path;
data/proftpd-dfsg-1.3.7a/tests/api/fsio.c:4042: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[PR_TUNABLE_PATH_MAX], *path;
data/proftpd-dfsg-1.3.7a/tests/api/fsio.c:4130: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[PR_TUNABLE_PATH_MAX], *path;
data/proftpd-dfsg-1.3.7a/tests/api/fsio.c:4196: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 junk[32], *res;
data/proftpd-dfsg-1.3.7a/tests/api/fsio.c:4232: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 junk[32], *res;
data/proftpd-dfsg-1.3.7a/tests/api/fsio.c:4429: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[PR_TUNABLE_PATH_MAX];
data/proftpd-dfsg-1.3.7a/tests/api/fsio.c:4935: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[PR_TUNABLE_PATH_MAX], *res, *text;
data/proftpd-dfsg-1.3.7a/tests/api/fsio.c:4977: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[PR_TUNABLE_PATH_MAX], *res, *text;
data/proftpd-dfsg-1.3.7a/tests/api/jot.c:506:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    text = (const char *) texts[i];
data/proftpd-dfsg-1.3.7a/tests/api/jot.c:603:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    text = (const char *) texts[i];
data/proftpd-dfsg-1.3.7a/tests/api/jot.c:1113: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 logfmt[3];
data/proftpd-dfsg-1.3.7a/tests/api/jot.c:1238: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 logfmt[3];
data/proftpd-dfsg-1.3.7a/tests/api/jot.c:1260: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 logfmt[3];
data/proftpd-dfsg-1.3.7a/tests/api/jot.c:1284: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 logfmt[3];
data/proftpd-dfsg-1.3.7a/tests/api/jot.c:1324: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 logfmt[3];
data/proftpd-dfsg-1.3.7a/tests/api/jot.c:1364: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 logfmt[10];
data/proftpd-dfsg-1.3.7a/tests/api/jot.c:1398: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 logfmt[3];
data/proftpd-dfsg-1.3.7a/tests/api/jot.c:1435: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 logfmt[12];
data/proftpd-dfsg-1.3.7a/tests/api/misc.c:811:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fh = fopen(path, "w+");
data/proftpd-dfsg-1.3.7a/tests/api/misc.c:828: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 shutdown_msg[PR_TUNABLE_BUFFER_SIZE];
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:66: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(tmp_path, O_RDWR|O_CREAT, 0666);
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:354: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[256], *cmd, *res;
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:389: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[256], *cmd, *first_cmd, *second_cmd, *res;
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:437: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[8], *cmd, *res;
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:468: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[256], *cmd, *res, telnet_opt;
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:520: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[256], *cmd, *res, telnet_opt;
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:561: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[256], *cmd, *res, telnet_opt;
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:631: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[256], *cmd, *res, telnet_opt;
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:683: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[256], *cmd, *res, telnet_opt;
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:724: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[256], *cmd, *res, telnet_opt;
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:776: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[256], *cmd, *res, telnet_opt;
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:817: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[256], *cmd, *res, telnet_opt;
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:869: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[256], *cmd, *res, telnet_opt;
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:910: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[256], *cmd, *res;
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:944: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[256], *cmd, *res;
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:981: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[256], *cmd, *res;
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:1015: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[256], *cmd, *res;
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:1052: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[256], *cmd, *res;
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:1089: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[10], *res, telnet_opt;
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:1121: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[256], *cmd, *res;
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:1159: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[256], *cmd, *res;
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:1198: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[256], *cmd;
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:1239: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[256], *cmd;
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:1254: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(pbuf->buf, cmd, cmd_len);
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:1281: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[256], *cmd;
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:1295: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(pbuf->buf, cmd, cmd_len);
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:1369: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], *expected_text;
data/proftpd-dfsg-1.3.7a/tests/api/regexp.c:96: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 errstr[256], *pattern;
data/proftpd-dfsg-1.3.7a/tests/api/regexp.c:142: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 errstr[256], *pattern;
data/proftpd-dfsg-1.3.7a/tests/api/response.c:233: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[PR_RESPONSE_BUFFER_SIZE] = {'\0'};
data/proftpd-dfsg-1.3.7a/tests/api/scoreboard.c:268: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(test_file2, O_CREAT|O_EXCL|O_RDWR, S_IRUSR|S_IWUSR);
data/proftpd-dfsg-1.3.7a/tests/api/scoreboard.c:912: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(test_file2, O_CREAT|O_EXCL|O_RDWR, S_IRUSR|S_IWUSR);
data/proftpd-dfsg-1.3.7a/tests/api/scoreboard.c:950: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 *paths[4] = {
data/proftpd-dfsg-1.3.7a/tests/api/str.c:789:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fh = fopen(path, "r"); 
data/proftpd-dfsg-1.3.7a/tests/api/table.c:337: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(str, res, sz);
data/proftpd-dfsg-1.3.7a/tests/api/table.c:389:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(str, res, sz);
data/proftpd-dfsg-1.3.7a/tests/api/table.c:513: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(str, res, sz);
data/proftpd-dfsg-1.3.7a/tests/api/table.c:578: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(str, v, sz);
data/proftpd-dfsg-1.3.7a/tests/api/trace.c:303: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 *channel, msg[16384];
data/proftpd-dfsg-1.3.7a/utils/ftpshut.c:95:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  disc = atoi(optarg);
data/proftpd-dfsg-1.3.7a/utils/ftpshut.c:98:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  deny = atoi(optarg);
data/proftpd-dfsg-1.3.7a/utils/ftpshut.c:146:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      now += (60 * atoi(shut));
data/proftpd-dfsg-1.3.7a/utils/ftpshut.c:166:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        mn = atoi(shut + shut_len - 2);
data/proftpd-dfsg-1.3.7a/utils/ftpshut.c:175: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).
      hr = atoi(shut);
data/proftpd-dfsg-1.3.7a/utils/ftpshut.c:200:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  outf = fopen(PR_SHUTMSG_PATH, "w");
data/proftpd-dfsg-1.3.7a/utils/ftptop.c:145: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 sbuf[32];
data/proftpd-dfsg-1.3.7a/utils/ftptop.c:229:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buf[32];
data/proftpd-dfsg-1.3.7a/utils/ftptop.c:260:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buf[128] = {'\0'};
data/proftpd-dfsg-1.3.7a/utils/ftptop.c:321:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        delay = atoi(optarg);
data/proftpd-dfsg-1.3.7a/utils/ftptop.c:361:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        count = atoi(optarg);
data/proftpd-dfsg-1.3.7a/utils/ftptop.c:424:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buf[PR_TUNABLE_BUFFER_SIZE] = {'\0'};
data/proftpd-dfsg-1.3.7a/utils/ftptop.c:607: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 now_str[32];
data/proftpd-dfsg-1.3.7a/utils/ftpwho.c:45: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 sbuf[32];
data/proftpd-dfsg-1.3.7a/utils/ftpwho.c:111: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 *ptr, server_addr[80];
data/proftpd-dfsg-1.3.7a/utils/ftpwho.c:120:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(server_addr, score->sce_server_addr,
data/proftpd-dfsg-1.3.7a/utils/ftpwho.c:245:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char time_str[32];
data/proftpd-dfsg-1.3.7a/utils/ftpwho.c:278:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buf[128] = {'\0'};
data/proftpd-dfsg-1.3.7a/utils/misc.c:56: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[PR_TUNABLE_BUFFER_SIZE] = {'\0'};
data/proftpd-dfsg-1.3.7a/utils/misc.c:64:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fp = fopen(config_path, "r");
data/proftpd-dfsg-1.3.7a/utils/scoreboard.c:30: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 util_scoreboard_file[PR_TUNABLE_PATH_MAX] = PR_RUN_DIR "/proftpd.scoreboard";
data/proftpd-dfsg-1.3.7a/utils/scoreboard.c:147:24:  [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).
  util_scoreboard_fd = open(util_scoreboard_file, flags);
data/proftpd-dfsg-1.3.7a/utils/scoreboard.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 dir[PR_TUNABLE_PATH_MAX] = {'\0'};
data/proftpd-dfsg-1.3.7a/utils/scoreboard.c:278: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(util_get_scoreboard(), O_RDWR);
data/proftpd-dfsg-1.3.7a/utils/utils.h:120: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 sce_user[32];
data/proftpd-dfsg-1.3.7a/utils/utils.h:123: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 sce_server_addr[80], sce_server_label[32];
data/proftpd-dfsg-1.3.7a/utils/utils.h:126: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 sce_client_addr[INET6_ADDRSTRLEN];
data/proftpd-dfsg-1.3.7a/utils/utils.h:128: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 sce_client_addr[INET_ADDRSTRLEN];
data/proftpd-dfsg-1.3.7a/utils/utils.h:130: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 sce_client_name[PR_TUNABLE_SCOREBOARD_BUFFER_SIZE];
data/proftpd-dfsg-1.3.7a/utils/utils.h:132: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 sce_class[32];
data/proftpd-dfsg-1.3.7a/utils/utils.h:133: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 sce_protocol[32];
data/proftpd-dfsg-1.3.7a/utils/utils.h:134: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 sce_cwd[PR_TUNABLE_SCOREBOARD_BUFFER_SIZE];
data/proftpd-dfsg-1.3.7a/utils/utils.h:136: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 sce_cmd[65];
data/proftpd-dfsg-1.3.7a/utils/utils.h:137: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 sce_cmd_arg[PR_TUNABLE_SCOREBOARD_BUFFER_SIZE];
data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/auth-otp.c:282: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).
    code = generate_code(auth_otp_pool, secret, strlen(secret));
data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/db.c:50:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(name) == 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/db.c:248: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).
  encoded_len = strlen(encoded);
data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/mod_auth_otp.c:288:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      (strlen(user_otp) == 0)) {
data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/t/api/base32.c:86: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).
    raw_len = strlen((char *) raw);
data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/t/api/base32.c:114: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).
    encoded_len = strlen((char *) encoded);
data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/t/api/otp.c:52:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t key_len = strlen((char *) key);
data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/t/api/otp.c:96:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t key_len = strlen(key);
data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/t/api/otp.c:143:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t key_len = strlen(key);
data/proftpd-dfsg-1.3.7a/contrib/mod_auth_otp/t/api/otp.c:191:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t key_len = strlen(key);
data/proftpd-dfsg-1.3.7a/contrib/mod_ban.c:304: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).
  *keysz = strlen(json_text) + 1;
data/proftpd-dfsg-1.3.7a/contrib/mod_ban.c:732: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).
  *valuesz = strlen(json_text) + 1;
data/proftpd-dfsg-1.3.7a/contrib/mod_ban.c:1345: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).
            strlen(ban_lists->bans.bl_entries[i].be_message) > 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_ban.c:1432: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).
            strlen(bce.be_message) > 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_ctrls_admin.c:265: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).
  textlen = strlen(text);
data/proftpd-dfsg-1.3.7a/contrib/mod_deflate.c:447:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      nread = read(nstrm->strm_fd, deflate_rbuf, datalen);
data/proftpd-dfsg-1.3.7a/contrib/mod_deflate.c:569:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return read(nstrm->strm_fd, buf, bufsz);
data/proftpd-dfsg-1.3.7a/contrib/mod_deflate.c:978:53:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      deflate_next_netio_read = deflate_next_netio->read;
data/proftpd-dfsg-1.3.7a/contrib/mod_dnsbl/mod_dnsbl.c:68: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).
  addrlen = strlen(ip_addr) +1;
data/proftpd-dfsg-1.3.7a/contrib/mod_exec.c:586:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (write(exec_stdin_pipe[1], c->argv[i], strlen(c->argv[i])) < 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_exec.c:719:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            buflen = read(exec_stdout_pipe[0], buf, bufsz-1);
data/proftpd-dfsg-1.3.7a/contrib/mod_exec.c:768:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            buflen = read(exec_stderr_pipe[0], buf, bufsz-1);
data/proftpd-dfsg-1.3.7a/contrib/mod_exec.c:1138: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).
      fmt = pstrndup(tmp_pool, key + 7, strlen(key) - 8);
data/proftpd-dfsg-1.3.7a/contrib/mod_exec.c:1153: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).
      env_var = pstrndup(tmp_pool, key + 6, strlen(key) - 7);
data/proftpd-dfsg-1.3.7a/contrib/mod_exec.c:1473: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).
  for (i = 0; i < strlen(key); i++) {
data/proftpd-dfsg-1.3.7a/contrib/mod_exec.c:1609: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).
  event_namelen = strlen(event_name);
data/proftpd-dfsg-1.3.7a/contrib/mod_ifsession.c:252: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).
      interp_dirlen = strlen(interp_dir);
data/proftpd-dfsg-1.3.7a/contrib/mod_ifversion.c:151: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).
  for (i = 0; i < strlen(version_str); i++) {
data/proftpd-dfsg-1.3.7a/contrib/mod_ifversion.c:207:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(version_str) == 1) {
data/proftpd-dfsg-1.3.7a/contrib/mod_ifversion.c:227: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(version_str) == 2) {
data/proftpd-dfsg-1.3.7a/contrib/mod_ifversion.c:233: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).
  for (i = 0; i < strlen(version_str); i++) {
data/proftpd-dfsg-1.3.7a/contrib/mod_ifversion.c:359:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        strlen(op_str) > 1) {
data/proftpd-dfsg-1.3.7a/contrib/mod_ifversion.c:364: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).
    op_len = strlen(op_str);
data/proftpd-dfsg-1.3.7a/contrib/mod_ifversion.c:390:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (version_str[strlen(version_str)-1] != '/') {
data/proftpd-dfsg-1.3.7a/contrib/mod_ifversion.c:398: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).
      version_str[strlen(version_str)-1] = '\0';
data/proftpd-dfsg-1.3.7a/contrib/mod_ldap.c:343: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).
        interacts->len = strlen(interacts->result);
data/proftpd-dfsg-1.3.7a/contrib/mod_ldap.c:353: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).
        interacts->len = strlen(interacts->result);
data/proftpd-dfsg-1.3.7a/contrib/mod_ldap.c:360: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).
        interacts->len = strlen(interacts->result);
data/proftpd-dfsg-1.3.7a/contrib/mod_ldap.c:370: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).
        interacts->len = strlen(interacts->result);
data/proftpd-dfsg-1.3.7a/contrib/mod_ldap.c:1756:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        strlen(pass) == 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_ldap.c:1764:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        strlen(ldap_authbind_dn) == 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_ldap.c:1778: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).
    bindcred.bv_len = strlen(cmd->argv[2]);
data/proftpd-dfsg-1.3.7a/contrib/mod_ldap.c:1811:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if ((size_t) encname_len == strlen(cryptpass + 1)) {
data/proftpd-dfsg-1.3.7a/contrib/mod_ldap.c:1821: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 (strncasecmp(hash_method, "crypt", strlen(hash_method)) == 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_ldap.c:1837: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).
  } else if (strncasecmp(hash_method, "clear", strlen(hash_method)) == 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_ldap.c:2609: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 (j = 0; j < strlen(sasl_mech); j++) {
data/proftpd-dfsg-1.3.7a/contrib/mod_ldap.c:2909: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(prefix) == 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_ldap.c:3345: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).
    ldap_dnpasslen = strlen(ldap_dnpass);
data/proftpd-dfsg-1.3.7a/contrib/mod_load/mod_load.c:538:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  count = read (fd, ldavgbuf, 40);
data/proftpd-dfsg-1.3.7a/contrib/mod_load/mod_load.c:818:7:  [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 (nl[1].n_name, "");
data/proftpd-dfsg-1.3.7a/contrib/mod_load/mod_load.c:891:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          || read (channel, (char *) load_ave, sizeof (load_ave))
data/proftpd-dfsg-1.3.7a/contrib/mod_log_forensic.c:184: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).
    *markerlen = strlen(marker);
data/proftpd-dfsg-1.3.7a/contrib/mod_log_forensic.c:209: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).
    *markerlen = strlen(marker);
data/proftpd-dfsg-1.3.7a/contrib/mod_log_forensic.c:279: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).
  iov[niov].iov_len = strlen(client_ip);
data/proftpd-dfsg-1.3.7a/contrib/mod_log_forensic.c:292: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).
  iov[niov].iov_len = strlen(server_ip);
data/proftpd-dfsg-1.3.7a/contrib/mod_log_forensic.c:323: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).
  iov[niov].iov_len = strlen(proto);
data/proftpd-dfsg-1.3.7a/contrib/mod_log_forensic.c:337: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).
    iov[niov].iov_len = strlen(session.user);
data/proftpd-dfsg-1.3.7a/contrib/mod_log_forensic.c:546: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).
      level_len = strlen(level);
data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab.c:955: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).
    memmove(limit->name, name, strlen(name) + 1);
data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab_file.c:338:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (read(filetab->tab_handle, &magic, sizeof(magic)) != sizeof(magic)) {
data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab_ldap.c:92: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).
  memmove(limit->name, values[0], strlen(values[0]) + 1);
data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab_radius.c:97: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).
  memmove(limit->name, values[0], strlen(values[0]) + 1);
data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab_sql.c:69:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(name) == 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab_sql.c:296:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        strlen(values[0]) > 0 &&
data/proftpd-dfsg-1.3.7a/contrib/mod_quotatab_sql.c:379:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        strlen(values[0]) > 0 &&
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:268: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).
  ((str[0] == '$') && (str[1] == '(') && (str[strlen(str)-1] == ')'))
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:364: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).
  varlen = strlen(var);
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:412: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).
  var_len = var_cpylen = strlen(var);
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:2320: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).
  pwlen = strlen((const char *) passwd);
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:2571: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).
  userlen = strlen((const char *) user);
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:2593: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((const char *) nas_identifier));
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:2688:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    (const unsigned char *) caller_id, strlen(caller_id));
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:3775: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).
  radius_server->secret_len = strlen((char *) radius_server->secret);
data/proftpd-dfsg-1.3.7a/contrib/mod_radius.c:3835: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).
  radius_server->secret_len = strlen((char *) radius_server->secret);
data/proftpd-dfsg-1.3.7a/contrib/mod_ratio.c:316: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).
      else if (*(char *) ((char *) c->argv[0] + (strlen (c->argv[0]) - 1)) == '.')
data/proftpd-dfsg-1.3.7a/contrib/mod_ratio.c:514:23:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while ((cpc = getc(newfile)) != EOF) {
data/proftpd-dfsg-1.3.7a/contrib/mod_ratio.c:646: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(g.user) == 0)
data/proftpd-dfsg-1.3.7a/contrib/mod_ratio.c:752:33:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                  while ((cpc = getc(newfile)) != EOF) {
data/proftpd-dfsg-1.3.7a/contrib/mod_rewrite.c:180: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).
  varlen = strlen(var);
data/proftpd-dfsg-1.3.7a/contrib/mod_rewrite.c:464:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  str[strlen(str)-1] = '\0';
data/proftpd-dfsg-1.3.7a/contrib/mod_rewrite.c:499:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  str[strlen(str)-1] = '\0';
data/proftpd-dfsg-1.3.7a/contrib/mod_rewrite.c:786: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 linelen = strlen(linebuf);
data/proftpd-dfsg-1.3.7a/contrib/mod_rewrite.c:1412: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).
  map_lookup_keylen = strlen(map->map_lookup_key);
data/proftpd-dfsg-1.3.7a/contrib/mod_rewrite.c:1811: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).
  valuelen = strlen(value);
data/proftpd-dfsg-1.3.7a/contrib/mod_rewrite.c:1826: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).
  valuelen = strlen(value);
data/proftpd-dfsg-1.3.7a/contrib/mod_rewrite.c:1843: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).
  value = pcalloc(map_pool, sizeof(char) * strlen(key));
data/proftpd-dfsg-1.3.7a/contrib/mod_rewrite.c:1916:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while ((res = read(fd, buf, buflen)) < 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_rewrite.c:2003:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      strlen(key) == 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_rewrite.c:2011: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).
  ucs4strlen = rewrite_utf8_to_ucs4(ucs4_longs, strlen(key),
data/proftpd-dfsg-1.3.7a/contrib/mod_rewrite.c:2044:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      strlen(key) == 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_rewrite.c:2183: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).
        flags_str[strlen(flags_str)-1] != ']') {
data/proftpd-dfsg-1.3.7a/contrib/mod_rewrite.c:2270: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).
           (var = strchr(var, '%')) != NULL && strlen(var) > 1 &&
data/proftpd-dfsg-1.3.7a/contrib/mod_rewrite.c:2546: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).
        flags_str[strlen(flags_str)-1] != ']') {
data/proftpd-dfsg-1.3.7a/contrib/mod_rewrite.c:2794:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen(new_arg) > 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/agent.c:149:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  res = read(fd, msg, sizeof(uint32_t));
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/agent.c:186:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    res = read(fd, buf + buflen, bufsz - buflen);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/auth-kbdint.c:137: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(submethods) > 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/auth-password.c:81: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).
  passwd_len = strlen(passwd);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/auth.c:524:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strncmp(session.cwd, default_root, strlen(default_root)) == 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/auth.c:527: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).
      new_cwd = &session.cwd[strlen(default_root)];
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/auth.c:753: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).
  buflen = bufsz = strlen(msg) + 32;
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/auth.c:1655: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).
    method_namelen = strlen(name);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/auth.c:1732: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).
  method_listlen = strlen(method_list);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/auth.c:1795: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).
  banner_len = strlen(banner);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/auth.c:1799: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).
    banner_len = strlen(banner);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/blacklist.c:79:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (read(fd, &hdr, sizeof(hdr)) != sizeof(hdr)) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/blacklist.c:159:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (read(fd, buf, 4) != 4) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/blacklist.c:204:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(fd, buf, bytes) != bytes) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/blacklist.c:294: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).
  hex_len = strlen(hex);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/disconnect.c:111: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(func) > 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/display.c:176:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(buf);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/display.c:220: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).
        fmt = pstrndup(p, key + 7, strlen(key) - 8);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/display.c:235: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).
        env_var = pstrndup(p, key + 6, strlen(key) - 7);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:1303: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(extpair->ext_name);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:1851: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).
  buflen = strlen(buf);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:1857: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).
    buflen = strlen(buf);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:1865: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).
    buflen = strlen(buf);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:1870: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).
    buflen = strlen(buf);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:1877: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).
    buflen = strlen(buf);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:1890: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).
        buflen = strlen(buf);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:1909: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).
      buflen = strlen(buf);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:1928: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).
      buflen = strlen(buf);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:1946: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).
      buflen = strlen(buf);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:1953: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).
      buflen = strlen(buf);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:2500: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).
      xattrsz += (sizeof(uint32_t) + strlen(name));
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:2774: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).
  user_len = MAX(strlen(user), 8);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:2783: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).
  group_len = MAX(strlen(group), 8);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:3627: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).
  ext.ext_datalen = strlen(versions_str);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:7842: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(link_path) == 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:7850: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(target_path) == 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:8247: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(path) == 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:8471: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(path) == 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:9484: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(path) == 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:10340: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).
    dent_len = strlen(dent->d_name);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:10516: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(path) == 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:10736: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(path) == 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:11104: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(path) == 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:11405: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(old_path) == 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:11413: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(new_path) == 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:11816: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(path) == 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:12101: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(path) == 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:12321: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(path) == 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:12552: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(target_path) == 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:12560: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(link_path) == 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/fxp.c:13327: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 char *) msg, strlen(msg));
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/interop.c:146: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).
  version_len = strlen(client_version);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/kex.c:2526: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).
    sizeof(uint32_t) + strlen(kex->server_names->kex_algo) +
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/kex.c:2527: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).
    sizeof(uint32_t) + strlen(kex->server_names->server_hostkey_algo) +
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/kex.c:2528: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).
    sizeof(uint32_t) + strlen(kex->server_names->c2s_encrypt_algo) +
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/kex.c:2529: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).
    sizeof(uint32_t) + strlen(kex->server_names->s2c_encrypt_algo) +
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/kex.c:2530: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).
    sizeof(uint32_t) + strlen(kex->server_names->c2s_mac_algo) +
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/kex.c:2531: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).
    sizeof(uint32_t) + strlen(kex->server_names->s2c_mac_algo) +
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/kex.c:2532: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).
    sizeof(uint32_t) + strlen(kex->server_names->c2s_comp_algo) +
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/kex.c:2533: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).
    sizeof(uint32_t) + strlen(kex->server_names->s2c_comp_algo) +
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/kex.c:2534: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).
    sizeof(uint32_t) + strlen(langs) +
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/kex.c:2535: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).
    sizeof(uint32_t) + strlen(langs) +
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/kex.c:2735: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 (strncmp(k + strlen(k) - 4, "-cbc", 4) == 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/keys.c:472:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          res = read(stdout_pipe[0], buf, buflen);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/keys.c:499:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          stderrlen = read(stderr_pipe[0], stderrbuf, stderrsz-1);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/keys.c:692: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).
      pwlen = strlen(buf);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/keys.c:718: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).
      pwlen = strlen(buf);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/keys.c:1013: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(buf);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/keys.c:2332: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).
  fp[strlen(fp)-1] = '\0';
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/keys.c:2782: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).
  passphrase_len = strlen(passphrase);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/keys.c:3076:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
       strlen(passphrase) == 0) &&
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/keys.c:3207:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  res = read(fd, input_buf, input_sz);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/keys.c:3225:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    res = read(fd, input_buf, input_sz);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/mod_sftp.c:145: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).
      buflen = strlen(buf);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/mod_sftp.c:207: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 (write(conn->wfd, errstr, strlen(errstr)) < 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/mod_sftp.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).
      arglen = strlen(arg);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/mod_sftp.c:640: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).
      arglen = strlen(arg);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/mod_sftp.c:1975:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (write(session.c->wfd, msg, strlen(msg)) < 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/msg.c:621: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(str);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/packet.c:234:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    res = read(sockfd, ptr, remainlen);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/packet.c:241:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          res = read(sockfd, ptr, remainlen);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/packet.c:1180: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).
      packet_iov[packet_niov].iov_len = strlen(version_id);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/packet.c:1205: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).
      packet_iov[packet_niov].iov_len = strlen(version_id);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/packet.c:1393: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).
  for (i = 0; i < strlen(str); i++) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/packet.c:1434: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).
  for (i = 0; i < strlen(explain); i++) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/packet.c:1488: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(str);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/packet.c:1750: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).
    version_len = strlen(version_id);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/rfc4716.c:83: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).
    linelen = strlen(linebuf);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/rfc4716.c:96: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 (line[strlen(line) - 1] == '\\') {
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/rfc4716.c:98: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).
          line[strlen(line) - 1] = '\0';
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/rfc4716.c:122: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).
        header_valuelen = strlen(line) - (header_taglen + 2);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/rfc4716.c:150: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 (line[strlen(line) - 1] == '\\') {
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/rfc4716.c:152: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).
          line[strlen(line) - 1] = '\0';
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/rfc4716.c:176: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).
        header_valuelen = strlen(line) - (header_taglen + 2);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/rfc4716.c:227: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).
  begin_markerlen = strlen(SFTP_SSH2_PUBKEY_BEGIN_MARKER);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/rfc4716.c:228: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).
  end_markerlen = strlen(SFTP_SSH2_PUBKEY_END_MARKER);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/rfc4716.c:318: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 (BIO_write(bio, line, strlen(line)) < 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/scp.c:370: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).
    errlen = strlen(errstr);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/scp.c:571:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(mode_str) < 5) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/scp.c:1707: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).
  ctrl_msg[strlen((char *) ctrl_msg)] = '\n';
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/scp.c:1708: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).
  ctrl_msglen = strlen((char *) ctrl_msg);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/scp.c:1745: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).
  ctrl_msg[strlen((char *) ctrl_msg)] = '\n';
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/scp.c:1746: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).
  ctrl_msglen = strlen((char *) ctrl_msg);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/scp.c:1784: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).
  ctrl_msg[strlen((char *) ctrl_msg)] = '\n';
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/scp.c:1785: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).
  ctrl_msglen = strlen((char *) ctrl_msg);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/scp.c:1949:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    pathlen = strlen(spi->path);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/scp.c:2573: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).
        pathlen = strlen(glob_path);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/scp.c:2598: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).
              pathlen = strlen(sp->path);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/scp.c:2641: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).
        pathlen = strlen(sp->path);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/utf8.c:229: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).
  inlen = strlen(str) + 1;
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/utf8.c:245:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len = strlen(str);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/utf8.c:288: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).
  inlen = strlen(str) + 1;
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp/utf8.c:304:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len = strlen(str);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp_pam.c:298: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).
  sftppam_userlen = strlen(user) + 1;
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp_sql.c:163: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).
    linelen = strlen(line);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp_sql.c:301: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).
  begin_markerlen = strlen(SFTP_SSH2_PUBKEY_BEGIN_MARKER);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp_sql.c:302: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).
  end_markerlen = strlen(SFTP_SSH2_PUBKEY_END_MARKER);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp_sql.c:391: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 (BIO_write(bio, line, strlen(line)) < 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp_sql.c:415: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(str) == 0)
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp_sql.c:575: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).
    col_datalen = strlen(values[i]);
data/proftpd-dfsg-1.3.7a/contrib/mod_sftp_sql.c:667: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).
    col_datalen = strlen(values[i]);
data/proftpd-dfsg-1.3.7a/contrib/mod_site_misc.c:932: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).
  timestamp_len = strlen(cmd->argv[2]);
data/proftpd-dfsg-1.3.7a/contrib/mod_site_misc.c:1110: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).
  timestamp_len = strlen(timestamp);
data/proftpd-dfsg-1.3.7a/contrib/mod_site_misc.c:1142: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).
  timestamp_len = strlen(timestamp);
data/proftpd-dfsg-1.3.7a/contrib/mod_site_misc.c:1174: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).
  timestamp_len = strlen(timestamp);
data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/db.c:1029: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).
      *str_valuelen = strlen(*str_value);
data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/db.c:1043: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).
      *str_valuelen = strlen(*str_value);
data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/db.c:1069: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).
      *str_valuelen = strlen(*str_value);
data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/db.c:1093: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).
      *str_valuelen = strlen(*str_value);  
data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/db.c:1107: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).
      *str_valuelen = strlen(*str_value);
data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/db.c:1117: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).
      *str_valuelen = strlen(*str_value);
data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/db.c:1126: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).
      *str_valuelen = strlen(*str_value);
data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/db.c:1135: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).
      *str_valuelen = strlen(*str_value);
data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/mod_snmp.c:440:15:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  prev_mask = umask(0);
data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/mod_snmp.c:445:12:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    (void) umask(prev_mask);
data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/mod_snmp.c:450:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  umask(prev_mask);
data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/mod_snmp.c:1912: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).
    addrlen = strlen(addr);
data/proftpd-dfsg-1.3.7a/contrib/mod_snmp/notify.c:112: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).
  pkt->community_len = strlen(community);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql.c:754: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).
  new_textlen = strlen(new_text);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql.c:905: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).
        val_textlen = strlen(val_text);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql.c:968: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).
      text_len = strlen(text);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql.c:991: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).
        text_len = strlen(text);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql.c:996: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).
        text_len = strlen(text);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql.c:1154: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).
  EVP_DigestUpdate(md_ctx, plaintext, strlen(plaintext));
data/proftpd-dfsg-1.3.7a/contrib/mod_sql.c:1463:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  namelen = strlen(name);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql.c:1513:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  namelen = strlen(name);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql.c:3130: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).
      text_len = strlen(text);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql.c:5354:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        } else if (strlen(arg) > 8) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sql.c:5369:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        } else if (strlen(arg) > 7) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sql.c:5387:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        } else if (strlen(arg) > 6) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sql.c:5405:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        } else if (strlen(arg) > 5) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_mysql.c:1157:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (mysql_real_query(conn->mysql, query, strlen(query)) != 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_mysql.c:1269:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (mysql_real_query(conn->mysql, query, strlen(query)) != 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_mysql.c:1369:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (mysql_real_query(conn->mysql, query, strlen(query)) != 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_mysql.c:1484:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (mysql_real_query(conn->mysql, query, strlen(query)) != 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_mysql.c:1579:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    (strlen(unescaped) * 2) + 1);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_mysql.c:1586:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  mysql_real_escape_string(conn->mysql, escaped, unescaped, strlen(unescaped));
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_mysql.c:1588: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).
  mysql_escape_string(escaped, unescaped, strlen(unescaped));
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_mysql.c:1739: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).
  plaintext_len = strlen(plaintext);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_mysql.c:1740: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).
  ciphertext_len = strlen(ciphertext);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_mysql.c:1755: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).
    scrambled_len = strlen(scrambled);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_mysql.c:1772: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).
    scrambled_len = strlen(scrambled);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_mysql.c:1788: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).
    scrambled_len = strlen(scrambled);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_mysql.c:1805: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).
    scrambled_len = strlen(scrambled);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_odbc.c:1240:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  switch (SQLPrepare(conn->sth, (SQLCHAR *) query, strlen(query))) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_odbc.c:1351: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 (SQLPrepare(conn->sth, (SQLCHAR *) query, strlen(query)) != SQL_SUCCESS) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_odbc.c:1446: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 (SQLPrepare(conn->sth, (SQLCHAR *) query, strlen(query)) != SQL_SUCCESS) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_odbc.c:1544: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 (SQLPrepare(conn->sth, (SQLCHAR *) query, strlen(query)) != SQL_SUCCESS) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_odbc.c:1630:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			      (strlen(unescaped) * 2) + 1);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_odbc.c:1632: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).
  sqlodbc_escape_string(escaped, unescaped, strlen(unescaped));
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_passwd.c:150: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(str) == 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_passwd.c:550: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).
        prefix_len = strlen((char *) prefix);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_passwd.c:582: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).
        prefix_len = strlen((char *) prefix);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_passwd.c:593: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).
    data_len = strlen(plaintext);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_passwd.c:607: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).
      data_len = strlen(plaintext);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_passwd.c:613: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).
        (unsigned char *) plaintext, strlen(plaintext),
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_passwd.c:620: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).
        data_len = strlen((char *) data);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_passwd.c:647: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).
        suffix_len = strlen((char *) suffix);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_passwd.c:678: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).
        suffix_len = strlen((char *) suffix);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_passwd.c:719:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        strlen(encodedtext), NULL, 0, NULL, 0, &hash_len);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_passwd.c:728:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (timingsafe_bcmp(encodedtext, copytext, strlen(copytext)) == 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_passwd.c:759:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (timingsafe_bcmp(hashed, ciphertext, strlen(ciphertext)) == 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_passwd.c:859: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 (timingsafe_bcmp(encodedtext, ciphertext, strlen(ciphertext)) == 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_passwd.c:931: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).
  plaintext_len = strlen(plaintext);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_passwd.c:948: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 (timingsafe_bcmp(encodedtext, ciphertext, strlen(ciphertext)) == 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_passwd.c:1022: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).
  plaintext_len = strlen(plaintext);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_passwd.c:1039: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 (timingsafe_bcmp(encodedtext, ciphertext, strlen(ciphertext)) == 0) {
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_passwd.c:1214: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).
      sql_passwd_user_salt_len = strlen(user);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_passwd.c:1276: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).
      value_len = strlen(values[0]);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_passwd.c:1849:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        nread = read(fd, buf, sizeof(buf));
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_passwd.c:1877:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          nread = read(fd, buf, sizeof(buf));
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_postgres.c:438: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).
      reason_len = strlen(reason);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_postgres.c:443: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).
        reason_len = strlen(reason);
data/proftpd-dfsg-1.3.7a/contrib/mod_sql_postgres.c:1474: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).
  unescaped_len = strlen(unescaped);
data/proftpd-dfsg-1.3.7a/contrib/mod_statcache.c:995:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  *pathlen = strlen(canon_path);
data/proftpd-dfsg-1.3.7a/contrib/mod_statcache.c:1104: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).
  pathlen = strlen(fh->fh_path);
data/proftpd-dfsg-1.3.7a/contrib/mod_statcache.c:1436:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    pathlen = strlen(fh->fh_path);
data/proftpd-dfsg-1.3.7a/contrib/mod_statcache.c:1514:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    pathlen = strlen(fh->fh_path);
data/proftpd-dfsg-1.3.7a/contrib/mod_statcache.c:1592:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    pathlen = strlen(fh->fh_path);
data/proftpd-dfsg-1.3.7a/contrib/mod_statcache.c:1671:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    pathlen = strlen(fh->fh_path);
data/proftpd-dfsg-1.3.7a/contrib/mod_statcache.c:1809:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    pathlen = strlen(fh->fh_path);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:2435: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).
        dns_sanlen = strlen(dns_san);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:2538: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).
          san_ipstrlen = strlen(san_ipstr);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:2636: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).
  cn_len = strlen(cn_str);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:3132:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          res = read(stdout_pipe[0], buf, buflen);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:3168:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          stderrlen = read(stderr_pipe[0], stderrbuf, stderrsz-1);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:3269: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).
      pwlen = strlen(buf);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:3293: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).
      pdata->buflen = strlen(buf);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:3706: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(buf);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:3712: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(buf);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:3719: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(buf);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:9069: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 ((size_t) data_len != strlen((char *) data_str)) {
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:9115: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 ((size_t) data_len != strlen((char *) data_str)) {
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:9174: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) asn_datalen != strlen((char *) asn_datastr)) {
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:11969:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return read(nstrm->strm_fd, buf, buflen);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:12554: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).
  for (i = 0; i < strlen(mode); i++) {
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:13973: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).
  identity_len = strlen(identity);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:13989:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  path_len = strlen(path);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:14811: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).
    param_len = strlen(param);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:15734:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    key_len = read(fd, key_buf, sizeof(key_buf)-1);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:16298: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).
  proto_len = strlen(proto);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls.c:17519: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).
  proto_len = strlen(proto);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_fscache.c:486: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(dent->d_name);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_fscache.c:589: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(dent->d_name);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_memcache.c:283: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).
  *keysz = strlen(json_text) + 1;
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_memcache.c:424: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).
    base64_datalen = strlen(base64_data);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_memcache.c:639: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).
  *valuesz = strlen(json_text) + 1;
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_memcache.c:1265: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).
  *keysz = strlen(json_text) + 1;
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_memcache.c:1320: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).
    base64_datalen = strlen(base64_data);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_memcache.c:1470: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).
  *valuesz = strlen(json_text) + 1;
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_memcache.c:1685: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).
  entry->fingerprint_len = strlen(fingerprint);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_memcache.c:1756: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).
  fingerprint_len = strlen(fingerprint);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_memcache.c:1841: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).
  fingerprint_len = strlen(fingerprint);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_redis.c:252: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).
  *keysz = strlen(json_text) + 1;
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_redis.c:347: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).
    base64_datalen = strlen(base64_data);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_redis.c:509: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).
  *valuesz = strlen(json_text) + 1;
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_redis.c:1119: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).
  *keysz = strlen(json_text) + 1;
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_redis.c:1174: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).
    base64_datalen = strlen(base64_data);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_redis.c:1322: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).
  *valuesz = strlen(json_text) + 1;
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_redis.c:1537: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).
  entry->fingerprint_len = strlen(fingerprint);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_redis.c:1608: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).
  fingerprint_len = strlen(fingerprint);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_redis.c:1693: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).
  fingerprint_len = strlen(fingerprint);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_shmcache.c:2027: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).
  entry->fingerprint_len = strlen(fingerprint);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_shmcache.c:2109: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).
  fingerprint_len = strlen(fingerprint);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_shmcache.c:2187: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).
  fingerprint_len = strlen(fingerprint);
data/proftpd-dfsg-1.3.7a/contrib/mod_tls_shmcache.c:2295: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).
  fingerprint_len = strlen(fingerprint);
data/proftpd-dfsg-1.3.7a/contrib/mod_wrap2/mod_wrap2.c:353: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).
      namelen = strlen(host->name); 
data/proftpd-dfsg-1.3.7a/contrib/mod_wrap2/mod_wrap2.c:437:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(str) - strlen(tok);
data/proftpd-dfsg-1.3.7a/contrib/mod_wrap2/mod_wrap2.c:437: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).
    len = strlen(str) - strlen(tok);
data/proftpd-dfsg-1.3.7a/contrib/mod_wrap2/mod_wrap2.c:449: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).
  } else if (tok[(len = strlen(tok)) - 1] == '.') {
data/proftpd-dfsg-1.3.7a/contrib/mod_wrap2/mod_wrap2.c:554: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).
  } else if (tok[(len = strlen(tok)) - 1] == '.') {
data/proftpd-dfsg-1.3.7a/contrib/mod_wrap2/mod_wrap2.c:569: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(primary_name) - strlen(tok);
data/proftpd-dfsg-1.3.7a/contrib/mod_wrap2/mod_wrap2.c:569:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(primary_name) - strlen(tok);
data/proftpd-dfsg-1.3.7a/contrib/mod_wrap2/mod_wrap2.c:595:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          len = strlen(name) - strlen(tok);
data/proftpd-dfsg-1.3.7a/contrib/mod_wrap2/mod_wrap2.c:595: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).
          len = strlen(name) - strlen(tok);
data/proftpd-dfsg-1.3.7a/contrib/mod_wrap2_file.c:48:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t buflen = strlen(buf);
data/proftpd-dfsg-1.3.7a/contrib/mod_wrap2_file.c:157: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).
          wordlen = strlen(word);
data/proftpd-dfsg-1.3.7a/contrib/mod_wrap2_redis.c:155: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).
        wordlen = strlen(word);
data/proftpd-dfsg-1.3.7a/contrib/mod_wrap2_sql.c:147: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).
        wordlen = strlen(word);
data/proftpd-dfsg-1.3.7a/include/fsio.h:134:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  int (*read)(pr_fh_t *, int, char *, size_t);
data/proftpd-dfsg-1.3.7a/include/netio.h:141:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  int (*read)(pr_netio_stream_t *, char *, size_t);
data/proftpd-dfsg-1.3.7a/include/os.h:184: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).
# define NAMLEN(dirent) strlen((dirent)->d_name)
data/proftpd-dfsg-1.3.7a/lib/ccan-json.c:53:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char *ret = (char*) malloc(strlen(str) + 1);
data/proftpd-dfsg-1.3.7a/lib/ccan-json.c:117: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).
	sb_put(sb, str, strlen(str));
data/proftpd-dfsg-1.3.7a/lib/ccan-json.c:123: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).
	assert(sb->start <= sb->cur && strlen(sb->start) == (size_t)(sb->cur - sb->start));
data/proftpd-dfsg-1.3.7a/lib/getopt.c:235:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
# if (!defined __STDC__ || !__STDC__) && !defined strlen
data/proftpd-dfsg-1.3.7a/lib/getopt.c:238: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/proftpd-dfsg-1.3.7a/lib/getopt.c:436:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      int len = nonoption_flags_max_len = strlen (orig_str);
data/proftpd-dfsg-1.3.7a/lib/getopt.c:661:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		== (unsigned int) strlen (p->name))
data/proftpd-dfsg-1.3.7a/lib/getopt.c:685: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/proftpd-dfsg-1.3.7a/lib/getopt.c:717: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/proftpd-dfsg-1.3.7a/lib/getopt.c:733: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/proftpd-dfsg-1.3.7a/lib/getopt.c:738: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/proftpd-dfsg-1.3.7a/lib/getopt.c:849:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      if ((unsigned int) (nameend - nextchar) == strlen (p->name))
data/proftpd-dfsg-1.3.7a/lib/getopt.c:872:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    nextchar += strlen (nextchar);
data/proftpd-dfsg-1.3.7a/lib/getopt.c:892:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    nextchar += strlen (nextchar);
data/proftpd-dfsg-1.3.7a/lib/getopt.c:906:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    nextchar += strlen (nextchar);
data/proftpd-dfsg-1.3.7a/lib/getopt.c:910:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    nextchar += strlen (nextchar);
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:117: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).
# define NAMLEN(dirent) strlen((dirent)->d_name)
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:475: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).
	  char onealt[strlen (pattern) - 1];
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:477: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).
	  char *onealt = (char *) malloc (strlen (pattern) - 1);
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:522: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).
	  rest_len = strlen (++rest) + 1;
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:605: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).
	  dirlen = strlen (pattern);
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:785:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      size_t home_len = strlen (home_dir);
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:858:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      size_t home_len = strlen (home_dir);
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:859: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).
	      size_t rest_len = end_name == NULL ? 0 : strlen (end_name);
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:912:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    size_t len = strlen (dirname) + 1;
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:1018: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).
	      size_t filename_len = strlen (filename) + 1;
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:1042: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 dir_len = strlen (dir);
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:1133:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
 	    size_t len = strlen (pglob->gl_pathv[i]) + 2;
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:1140: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 (&new[len - 2], "/");
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:1206:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t dirlen = strlen (dirname);
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:1235:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t eltlen = strlen (array[i]) + 1;
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:1340:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t patlen = strlen (pattern);
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:1341:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t dirlen = strlen (directory);
data/proftpd-dfsg-1.3.7a/lib/glibc-glob.c:1474:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t len = strlen (pattern);
data/proftpd-dfsg-1.3.7a/lib/glibc-mkstemp.c:45: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 (tmpl);
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:336: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).
    root->ser_osz += strlen(fmt) + 1;  /* fmt + NUL-terminator */
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:554:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ((tpl_root_data*)(root->data))->fmt = tpl_hook.malloc(strlen(fmt)+1);
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:557:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    memcpy(((tpl_root_data*)(root->data))->fmt,fmt,strlen(fmt)+1);
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:869: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).
                      slen = strp ? (strlen(strp)+1) : 0;
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:938: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).
                  sz += strp ? strlen(strp) : 0;
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:1076: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).
    dv = tpl_cpv(dv,fmt,strlen(fmt)+1);   /* copy format with NUL-term */
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:1102: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).
                  slen = str ? strlen(str)+1 : 0;
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:1354: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).
       datapeek_flen = strlen(datapeek_f);
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:1845: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).
                  slen = caddr ?  (strlen(caddr) + 1) : 0;
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:2220:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        rc = read(fd,&preamble[i],8-i);
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:2260:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        rc = read(fd,&((*(char**)img)[i]),tpllen-i);
data/proftpd-dfsg-1.3.7a/lib/hanson-tpl.c:2290:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        rc = read(fd,buf,TPL_GATHER_BUFLEN);
data/proftpd-dfsg-1.3.7a/lib/libltdl/argz.c:91: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).
  argz_len = 1+ strlen (str);
data/proftpd-dfsg-1.3.7a/lib/libltdl/argz.c:141: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).
    return argz_append (pargz, pargz_len, entry, 1+ strlen (entry));
data/proftpd-dfsg-1.3.7a/lib/libltdl/argz.c:150: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).
    size_t entry_len	= 1+ strlen (entry);
data/proftpd-dfsg-1.3.7a/lib/libltdl/libltdl/lt__dirent.h:45: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).
#  define D_NAMLEN(dirent) (strlen((dirent)->d_name))
data/proftpd-dfsg-1.3.7a/lib/libltdl/libltdl/lt__dirent.h:53: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).
#  define D_NAMLEN(dirent)	(strlen((dirent)->d_name))
data/proftpd-dfsg-1.3.7a/lib/libltdl/loaders/dyld.c:353:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (saveError, dylderror (LT__STRERROR (SYMBOL_NOT_FOUND)), 255);
data/proftpd-dfsg-1.3.7a/lib/libltdl/lt__alloc.c:94: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).
  return (char *) lt__memdup (string, strlen (string) +1);
data/proftpd-dfsg-1.3.7a/lib/libltdl/lt__dirent.c:102: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).
  entry->file_info.d_namlen = strlen (entry->file_info.d_name);
data/proftpd-dfsg-1.3.7a/lib/libltdl/lt__strl.c:61: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).
  length=strlen(dst);
data/proftpd-dfsg-1.3.7a/lib/libltdl/ltdl.c:1218:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (dir, canonical, dirlen);
data/proftpd-dfsg-1.3.7a/lib/libltdl/ltdl.c:1681: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).
    error = argz_append (pargz, pargz_len, entry, 1 + strlen (entry));
data/proftpd-dfsg-1.3.7a/lib/libltdl/ltdl.c:1771:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
  strcat  (buf, "/");
data/proftpd-dfsg-1.3.7a/lib/libltdl/ltdl.c:1772:3:  [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 (buf, dp->d_name, end_offset);
data/proftpd-dfsg-1.3.7a/lib/libltdl/ltdl.c:2117: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).
      assert ((int) (before - *ppath) <= (int) strlen (*ppath));
data/proftpd-dfsg-1.3.7a/lib/libltdl/ltdl.h:44: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).
#define LT_STRLEN(s)	(((s) && (s)[0]) ? strlen (s) : 0)
data/proftpd-dfsg-1.3.7a/lib/openbsd-bcrypt.c:88:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		key_len = (u_int8_t)(strlen(key) + 1);
data/proftpd-dfsg-1.3.7a/lib/openbsd-bcrypt.c:95: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).
		key_len = strlen(key);
data/proftpd-dfsg-1.3.7a/lib/openbsd-bcrypt.c:104:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		key_len = (u_int8_t)(strlen(key) + 1);
data/proftpd-dfsg-1.3.7a/lib/openbsd-bcrypt.c:127: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(salt) * 3 / 4 < BCRYPT_MAXSALT)
data/proftpd-dfsg-1.3.7a/lib/pr-syslog.c:170: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).
  timestr[strlen(timestr)-1] = '\0';
data/proftpd-dfsg-1.3.7a/lib/pr_fnmatch.c:251: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).
# define STRLEN(S) strlen (S)
data/proftpd-dfsg-1.3.7a/lib/pr_fnmatch.c:378: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 (pattern);
data/proftpd-dfsg-1.3.7a/lib/pr_fnmatch.c:413:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      n = strlen (string);
data/proftpd-dfsg-1.3.7a/lib/pr_fnmatch.c:450:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return internal_fnmatch (pattern, string, string + strlen (string),
data/proftpd-dfsg-1.3.7a/lib/pwgrent.c:109: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';
data/proftpd-dfsg-1.3.7a/lib/pwgrent.c:178: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(buf) + 1;
data/proftpd-dfsg-1.3.7a/modules/mod_auth.c:415: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).
    passwd_len = strlen(cmd->arg);
data/proftpd-dfsg-1.3.7a/modules/mod_auth.c:895: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).
        pathlen = strlen(path);
data/proftpd-dfsg-1.3.7a/modules/mod_auth.c:1066: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).
        pr_memscrub(pass, strlen(pass));
data/proftpd-dfsg-1.3.7a/modules/mod_auth.c:1221: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).
      pr_memscrub(pass, strlen(pass));
data/proftpd-dfsg-1.3.7a/modules/mod_auth.c:1409: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).
        chroot_pathlen = strlen(chroot_path);
data/proftpd-dfsg-1.3.7a/modules/mod_auth.c:1710: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 (strncmp(session.cwd, defroot, strlen(defroot)) == 0) {
data/proftpd-dfsg-1.3.7a/modules/mod_auth.c:1711: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).
        char *newcwd = &session.cwd[strlen(defroot)];
data/proftpd-dfsg-1.3.7a/modules/mod_auth.c:1911: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).
    pr_memscrub(pass, strlen(pass));
data/proftpd-dfsg-1.3.7a/modules/mod_auth.c:2347: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(cmd->arg) > PR_TUNABLE_LOGIN_MAX) {
data/proftpd-dfsg-1.3.7a/modules/mod_auth.c:2505: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).
            passwd_len = strlen(cmd->arg);
data/proftpd-dfsg-1.3.7a/modules/mod_auth.c:2719: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).
  st->st_size = strlen(AUTH_ROBOTS_TXT);
data/proftpd-dfsg-1.3.7a/modules/mod_auth.c:2769: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).
  robots_len = strlen(AUTH_ROBOTS_TXT);
data/proftpd-dfsg-1.3.7a/modules/mod_auth.c:3356:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (*(dir + strlen(dir) - 1) != '/') {
data/proftpd-dfsg-1.3.7a/modules/mod_auth.c:3401:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (*(dir + strlen(dir) - 1) != '/') {
data/proftpd-dfsg-1.3.7a/modules/mod_auth_file.c:392: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(buf) + 1;
data/proftpd-dfsg-1.3.7a/modules/mod_auth_file.c:782: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).
      buf[strlen(buf)-1] = '\0';
data/proftpd-dfsg-1.3.7a/modules/mod_auth_file.c:1310: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).
  ciphertxt_passlen = strlen(ciphertxt_pass);
data/proftpd-dfsg-1.3.7a/modules/mod_auth_pam.c:275: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).
  pam_user_len = strlen(cmd->argv[0]) + 1;
data/proftpd-dfsg-1.3.7a/modules/mod_auth_pam.c:301: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).
  pam_pass_len = strlen(cmd->argv[1]) + 1;
data/proftpd-dfsg-1.3.7a/modules/mod_auth_unix.c:213: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).
  name_len = strlen(name);
data/proftpd-dfsg-1.3.7a/modules/mod_auth_unix.c:246: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).
  name_len = strlen(name);
data/proftpd-dfsg-1.3.7a/modules/mod_auth_unix.c:733: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).
  cleartxt_passwdlen = strlen(cleartxt_passwd);
data/proftpd-dfsg-1.3.7a/modules/mod_auth_unix.c:775: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).
  cleartxt_passwdlen = strlen(cleartxt_passwd);
data/proftpd-dfsg-1.3.7a/modules/mod_auth_unix.c:1325: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).
  user_len = strlen(user);
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:938:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  namelen = strlen(name);
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:2708: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/proftpd-dfsg-1.3.7a/modules/mod_core.c:4794: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).
  hostlen = strlen(host);
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:5230: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).
        cdir = palloc(cmd->tmp_pool, strlen(cdpath->argv[0]) + strlen(ndir) + 2);
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:5230:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        cdir = palloc(cmd->tmp_pool, strlen(cdpath->argv[0]) + strlen(ndir) + 2);
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:5231: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).
        pr_snprintf(cdir, strlen(cdpath->argv[0]) + strlen(ndir) + 2,
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:5231: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).
        pr_snprintf(cdir, strlen(cdpath->argv[0]) + strlen(ndir) + 2,
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:5233: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).
                 ((char *) cdpath->argv[0])[strlen(cdpath->argv[0]) - 1] == '/' ? "" : "/",
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:5286: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).
        cdir = palloc(cmd->tmp_pool, strlen(cdpath->argv[0]) + strlen(ndir) + 2);
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:5286:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        cdir = palloc(cmd->tmp_pool, strlen(cdpath->argv[0]) + strlen(ndir) + 2);
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:5287: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).
        pr_snprintf(cdir, strlen(cdpath->argv[0]) + strlen(ndir) + 2,
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:5287: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).
        pr_snprintf(cdir, strlen(cdpath->argv[0]) + strlen(ndir) + 2,
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:5289: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).
                ((char *)cdpath->argv[0])[strlen(cdpath->argv[0]) - 1] == '/' ? "" : "/",
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:6727: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 (modulev[i][strlen(modulev[i])-1] == '*') {
data/proftpd-dfsg-1.3.7a/modules/mod_core.c:6729: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).
        modulev[i][strlen(modulev[i])-1] = '\0';
data/proftpd-dfsg-1.3.7a/modules/mod_delay.c:423: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(str);
data/proftpd-dfsg-1.3.7a/modules/mod_delay.c:1230:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen(vals) > 0)
data/proftpd-dfsg-1.3.7a/modules/mod_delay.c:1272:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen(vals) > 0)
data/proftpd-dfsg-1.3.7a/modules/mod_dso.c:82:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  namelen = strlen(name);
data/proftpd-dfsg-1.3.7a/modules/mod_dso.c:312: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).
      name[strlen(name)-2] != '.' ||
data/proftpd-dfsg-1.3.7a/modules/mod_dso.c:313: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).
      name[strlen(name)-1] != 'c') {
data/proftpd-dfsg-1.3.7a/modules/mod_facts.c:633:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(dent_name) >= 2) {
data/proftpd-dfsg-1.3.7a/modules/mod_facts.c:1103:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen(timestamp) < 14) {
data/proftpd-dfsg-1.3.7a/modules/mod_facts.c:1299: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(timestamp) < 14) {
data/proftpd-dfsg-1.3.7a/modules/mod_lang.c:97: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).
    feat_strlen = strlen(feat_str);
data/proftpd-dfsg-1.3.7a/modules/mod_lang.c:266: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).
  lang_len = strlen(lang_dup);
data/proftpd-dfsg-1.3.7a/modules/mod_log.c:211: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(cmd->argv[1]) == 0) {
data/proftpd-dfsg-1.3.7a/modules/mod_log.c:650: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).
      text_len = strlen(text);
data/proftpd-dfsg-1.3.7a/modules/mod_log.c:672: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).
        text_len = strlen(text);
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:190: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).
    buflen = strlen(buf);
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:331: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).
    listbuflen = (listbuf_ptr - listbuf) + strlen(listbuf_ptr);
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:382:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  listbuflen = (listbuf_ptr - listbuf) + strlen(listbuf_ptr);
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:384: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).
  buflen = strlen(buf);
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:472:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  namelen = strlen(name);
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:520: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).
      display_namelen = strlen(display_name);
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:801: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).
          char *buf = nameline + strlen(nameline);
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:819: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 (sizeof(nameline) - strlen(nameline) > 4) {
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:820: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).
              pr_snprintf(buf, sizeof(nameline) - strlen(nameline) - 4,
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:915: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(name) + strlen(suffix);
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:915: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).
  l = strlen(name) + strlen(suffix);
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:1116: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).
        idx = (colwidth + 7 - strlen(q->line)) / 8;
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:1272: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).
    p[i] = (char *) calloc(strlen(de->d_name) + 1, sizeof(char));
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:1277: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).
    sstrncpy(p[i++], de->d_name, strlen(de->d_name) + 1);
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:2269: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).
    display_namelen = strlen(display_name);
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:2314: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).
      display_namelen = strlen(display_name);
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:3219: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).
      targetlen = strlen(target);
data/proftpd-dfsg-1.3.7a/modules/mod_ls.c:3227: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).
        targetlen = strlen(target);
data/proftpd-dfsg-1.3.7a/modules/mod_redis.c:229: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).
      text_len = strlen(text);
data/proftpd-dfsg-1.3.7a/modules/mod_redis.c:279: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).
    payload_len = strlen(payload);
data/proftpd-dfsg-1.3.7a/modules/mod_redis.c:658: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).
    sentinel_len = strlen(sentinel);
data/proftpd-dfsg-1.3.7a/modules/mod_redis.c:715: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).
  server_len = strlen(server);
data/proftpd-dfsg-1.3.7a/modules/mod_redis.c:915: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/proftpd-dfsg-1.3.7a/modules/mod_redis.c:928: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/proftpd-dfsg-1.3.7a/modules/mod_rlimit.c:782:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  path_len = strlen(path);
data/proftpd-dfsg-1.3.7a/modules/mod_site.c:56:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  reslen = strlen(res);
data/proftpd-dfsg-1.3.7a/modules/mod_site.c:282:60:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    int mask = 0, mode_op = 0, curr_mode = 0, curr_umask = umask(0);
data/proftpd-dfsg-1.3.7a/modules/mod_site.c:286:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(curr_umask);
data/proftpd-dfsg-1.3.7a/modules/mod_xfer.c:1171: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).
  maxlen = strlen(prefix) + strlen(path) + strlen(suffix) + 1;
data/proftpd-dfsg-1.3.7a/modules/mod_xfer.c:1171: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).
  maxlen = strlen(prefix) + strlen(path) + strlen(suffix) + 1;
data/proftpd-dfsg-1.3.7a/modules/mod_xfer.c:1171: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).
  maxlen = strlen(prefix) + strlen(path) + strlen(suffix) + 1;
data/proftpd-dfsg-1.3.7a/modules/mod_xfer.c:3519: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).
      prefix[strlen(prefix)-1] == '.') {
data/proftpd-dfsg-1.3.7a/modules/mod_xfer.c:4035: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).
      arglen = strlen(arg);
data/proftpd-dfsg-1.3.7a/src/auth.c:138: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).
      namelen = strlen(name);
data/proftpd-dfsg-1.3.7a/src/auth.c:230: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).
      namelen = strlen(name);
data/proftpd-dfsg-1.3.7a/src/auth.c:1150: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).
  cleartext_passwd_len = strlen(cleartext_passwd);
data/proftpd-dfsg-1.3.7a/src/cmd.c:330: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).
  cmd_namelen = strlen(cmd_name);
data/proftpd-dfsg-1.3.7a/src/cmd.c:348: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).
      *str_len = strlen(res);
data/proftpd-dfsg-1.3.7a/src/cmd.c:386: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).
    *str_len = strlen(res);
data/proftpd-dfsg-1.3.7a/src/cmd.c:402: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).
  cmd_namelen = strlen(cmd_name);
data/proftpd-dfsg-1.3.7a/src/cmd.c:475: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).
  cmd_namelen = strlen(cmd_name);
data/proftpd-dfsg-1.3.7a/src/cmd.c:502: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).
  cmd_namelen = strlen(cmd_name);
data/proftpd-dfsg-1.3.7a/src/configdb.c:495: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/proftpd-dfsg-1.3.7a/src/ctrls.c:463: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).
  pr_vsnprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), fmt, resp);
data/proftpd-dfsg-1.3.7a/src/ctrls.c:463: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).
  pr_vsnprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), fmt, resp);
data/proftpd-dfsg-1.3.7a/src/ctrls.c:553:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  bread = read(cl->cl_fd, &status, sizeof(int));
data/proftpd-dfsg-1.3.7a/src/ctrls.c:574:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  bread = read(cl->cl_fd, &nreqargs, sizeof(unsigned int));
data/proftpd-dfsg-1.3.7a/src/ctrls.c:609:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  bread = read(cl->cl_fd, &reqarglen, sizeof(unsigned int));
data/proftpd-dfsg-1.3.7a/src/ctrls.c:637:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  bread = read(cl->cl_fd, reqaction, reqarglen);
data/proftpd-dfsg-1.3.7a/src/ctrls.c:675:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bread = read(cl->cl_fd, &reqarglen, sizeof(unsigned int));
data/proftpd-dfsg-1.3.7a/src/ctrls.c:722:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bread = read(cl->cl_fd, reqarg, reqarglen);
data/proftpd-dfsg-1.3.7a/src/ctrls.c:808:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (read(ctrls_sockfd, status, sizeof(int)) != sizeof(int)) {
data/proftpd-dfsg-1.3.7a/src/ctrls.c:814:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (read(ctrls_sockfd, &respargc, sizeof(unsigned int)) !=
data/proftpd-dfsg-1.3.7a/src/ctrls.c:833:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(ctrls_sockfd, &resparglen,
data/proftpd-dfsg-1.3.7a/src/ctrls.c:848:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bread = read(ctrls_sockfd, response, resparglen);
data/proftpd-dfsg-1.3.7a/src/ctrls.c:856:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      bread = read(ctrls_sockfd, response + blen, resparglen - blen);
data/proftpd-dfsg-1.3.7a/src/ctrls.c:914: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).
    msgarglen = strlen(msgargv[i]);
data/proftpd-dfsg-1.3.7a/src/ctrls.c:1508: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).
  tmp += strlen("/tmp/ftp.cl");
data/proftpd-dfsg-1.3.7a/src/dirtree.c:188:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen(file_name) > 1) {
data/proftpd-dfsg-1.3.7a/src/dirtree.c:477: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).
      path_len = strlen(tmp_path);
data/proftpd-dfsg-1.3.7a/src/dirtree.c:560: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).
  tmplen = strlen(tmp);
data/proftpd-dfsg-1.3.7a/src/dirtree.c:564: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).
    tmplen = strlen(tmp);
data/proftpd-dfsg-1.3.7a/src/dirtree.c:576: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).
          !strncmp(session.chroot_path, tmp, strlen(session.chroot_path))) {
data/proftpd-dfsg-1.3.7a/src/dirtree.c:1525: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).
    curr_dir_pathlen = strlen(curr_dir_path);
data/proftpd-dfsg-1.3.7a/src/dirtree.c:1563: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).
      ftpaccess_namelen = strlen(ftpaccess_name);
data/proftpd-dfsg-1.3.7a/src/dirtree.c:1898:47:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        (unsigned int) _umask, (unsigned int) umask(_umask));
data/proftpd-dfsg-1.3.7a/src/dirtree.c:1942:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (!c || strncmp(c->name, fullpath, strlen(c->name)) != 0) {
data/proftpd-dfsg-1.3.7a/src/dirtree.c:2069:47:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        (unsigned int) _umask, (unsigned int) umask(_umask));
data/proftpd-dfsg-1.3.7a/src/dirtree.c:2123: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).
  pathlen = strlen(path);
data/proftpd-dfsg-1.3.7a/src/dirtree.c:2141:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len = strlen(c->name);
data/proftpd-dfsg-1.3.7a/src/display.c:308:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(buf);
data/proftpd-dfsg-1.3.7a/src/display.c:347: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).
        fmt = pstrndup(p, key + 7, strlen(key) - 8);
data/proftpd-dfsg-1.3.7a/src/display.c:362: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).
        env_var = pstrndup(p, key + 6, strlen(key) - 7);
data/proftpd-dfsg-1.3.7a/src/encode.c:400:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      strlen(charset) == 0) {
data/proftpd-dfsg-1.3.7a/src/env.c:60: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).
  valuelen = strlen(value);
data/proftpd-dfsg-1.3.7a/src/event.c:191: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).
  evl->event_len = strlen(evl->event);
data/proftpd-dfsg-1.3.7a/src/filter.c:81: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).
  flags_len = strlen(flags_str);
data/proftpd-dfsg-1.3.7a/src/fsio.c:134:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  path_len = strlen(path);
data/proftpd-dfsg-1.3.7a/src/fsio.c:288:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return read(fd, buf, size);
data/proftpd-dfsg-1.3.7a/src/fsio.c:1412:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  path_len = strlen(cleaned_path);
data/proftpd-dfsg-1.3.7a/src/fsio.c:1500:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  tmp_pathlen = strlen(tmp_path);
data/proftpd-dfsg-1.3.7a/src/fsio.c:2272:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (path[strlen(path)-1] == '/') {
data/proftpd-dfsg-1.3.7a/src/fsio.c:2273:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t len = strlen(cleaned_path);
data/proftpd-dfsg-1.3.7a/src/fsio.c:2502:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((fs->fs_path)[strlen(fs->fs_path) - 1] == '/' &&
data/proftpd-dfsg-1.3.7a/src/fsio.c:2503:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        !strncmp(path, fs->fs_path, strlen(fs->fs_path))) {
data/proftpd-dfsg-1.3.7a/src/fsio.c:2550: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).
  cwd_len = strlen(cwd);
data/proftpd-dfsg-1.3.7a/src/fsio.c:2580: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).
  dir1len = strlen(dir1);
data/proftpd-dfsg-1.3.7a/src/fsio.c:2581: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).
  dir2len = strlen(dir2);
data/proftpd-dfsg-1.3.7a/src/fsio.c:2698: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).
  pathlen = strlen(path);
data/proftpd-dfsg-1.3.7a/src/fsio.c:2786: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).
  currlen = strlen(buf);
data/proftpd-dfsg-1.3.7a/src/fsio.c:2892: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).
        size_t wherelen = strlen(where);
data/proftpd-dfsg-1.3.7a/src/fsio.c:3065: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).
        size_t wherelen = strlen(where);
data/proftpd-dfsg-1.3.7a/src/fsio.c:3257: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).
        size_t wherelen = strlen(where);
data/proftpd-dfsg-1.3.7a/src/fsio.c:3333: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).
  res = pr_decode_str(p, path, strlen(path), &outlen);
data/proftpd-dfsg-1.3.7a/src/fsio.c:3346: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).
      pathlen = strlen(path);
data/proftpd-dfsg-1.3.7a/src/fsio.c:3408: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).
  res = pr_encode_str(p, path, strlen(path), &outlen);
data/proftpd-dfsg-1.3.7a/src/fsio.c:3421: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).
      pathlen = strlen(path);
data/proftpd-dfsg-1.3.7a/src/fsio.c:3467: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).
  pathlen = strlen(path);
data/proftpd-dfsg-1.3.7a/src/fsio.c:3492: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).
  buflen = strlen(buf);
data/proftpd-dfsg-1.3.7a/src/fsio.c:3594: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 (strncmp(fsi->fs_path, path, strlen(fsi->fs_path)) == 0) {
data/proftpd-dfsg-1.3.7a/src/fsio.c:3682: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).
        size_t wherelen = strlen(where);
data/proftpd-dfsg-1.3.7a/src/fsio.c:4035:20:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
      prev_umask = umask(dir_umask);
data/proftpd-dfsg-1.3.7a/src/fsio.c:4049:12:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    (void) umask(prev_umask);
data/proftpd-dfsg-1.3.7a/src/fsio.c:5193:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while (fs && fs->fs_next && !fs->read) {
data/proftpd-dfsg-1.3.7a/src/fsio.c:5199:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  res = (fs->read)(fh, fh->fh_fd, buf, size);
data/proftpd-dfsg-1.3.7a/src/fsio.c:6402:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strncmp(fs->fs_path, path, strlen(path)) == 0) {
data/proftpd-dfsg-1.3.7a/src/fsio.c:6403: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).
        memmove(fs->fs_path, fs->fs_path + strlen(path),
data/proftpd-dfsg-1.3.7a/src/fsio.c:6404:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          strlen(fs->fs_path) - strlen(path) + 1);
data/proftpd-dfsg-1.3.7a/src/fsio.c:6404: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).
          strlen(fs->fs_path) - strlen(path) + 1);
data/proftpd-dfsg-1.3.7a/src/fsio.c:6421: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 (strncmp(tmpfs->fs_path, path, strlen(path)) == 0) {
data/proftpd-dfsg-1.3.7a/src/fsio.c:6424: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).
        memmove(tmpfs->fs_path, tmpfs->fs_path + strlen(path),
data/proftpd-dfsg-1.3.7a/src/fsio.c:6425:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          strlen(tmpfs->fs_path) - strlen(path) + 1);
data/proftpd-dfsg-1.3.7a/src/fsio.c:6425:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          strlen(tmpfs->fs_path) - strlen(path) + 1);
data/proftpd-dfsg-1.3.7a/src/fsio.c:6432: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).
          memmove(next->fs_path, next->fs_path + strlen(path),
data/proftpd-dfsg-1.3.7a/src/fsio.c:6433: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).
            strlen(next->fs_path) - strlen(path) + 1);
data/proftpd-dfsg-1.3.7a/src/fsio.c:6433:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            strlen(next->fs_path) - strlen(path) + 1);
data/proftpd-dfsg-1.3.7a/src/fsio.c:6626: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).
    inlen = strlen(buf);
data/proftpd-dfsg-1.3.7a/src/fsio.c:7262: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 pr_fsio_write(fh, buf, strlen(buf));
data/proftpd-dfsg-1.3.7a/src/fsio.c:7310: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).
        (fsi->fs_path)[strlen(fsi->fs_path) - 1] == '/')) {
data/proftpd-dfsg-1.3.7a/src/fsio.c:7460:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (fs->read) {
data/proftpd-dfsg-1.3.7a/src/jot.c:1109: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).
          (unsigned long) strlen(logfmt_data));
data/proftpd-dfsg-1.3.7a/src/jot.c:2878: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).
  text_len = strlen(text);
data/proftpd-dfsg-1.3.7a/src/log.c:730: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(s));
data/proftpd-dfsg-1.3.7a/src/main.c:846: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).
  arg_len = buflen - strlen(wrd);
data/proftpd-dfsg-1.3.7a/src/main.c:2603:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask((mode_t) 0022);
data/proftpd-dfsg-1.3.7a/src/main.c:2606:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(*main_umask);
data/proftpd-dfsg-1.3.7a/src/memcache.c:679: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).
    prefix_len = strlen(prefix);
data/proftpd-dfsg-1.3.7a/src/memcache.c:722:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  res = pr_memcache_kadd(mcache, m, key, strlen(key), value, valuesz, expires,
data/proftpd-dfsg-1.3.7a/src/memcache.c:753: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).
  res = pr_memcache_kdecr(mcache, m, key, strlen(key), decr, value);
data/proftpd-dfsg-1.3.7a/src/memcache.c:781:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ptr = pr_memcache_kget(mcache, m, key, strlen(key), valuesz, flags);
data/proftpd-dfsg-1.3.7a/src/memcache.c:807: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).
  ptr = pr_memcache_kget_str(mcache, m, key, strlen(key), flags);
data/proftpd-dfsg-1.3.7a/src/memcache.c:836: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).
  res = pr_memcache_kincr(mcache, m, key, strlen(key), incr, value);
data/proftpd-dfsg-1.3.7a/src/memcache.c:862: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).
  res = pr_memcache_kremove(mcache, m, key, strlen(key), expires);
data/proftpd-dfsg-1.3.7a/src/memcache.c:891:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  res = pr_memcache_kset(mcache, m, key, strlen(key), value, valuesz, expires,
data/proftpd-dfsg-1.3.7a/src/mkhome.c:60:15:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  prev_mask = umask(0);
data/proftpd-dfsg-1.3.7a/src/mkhome.c:65:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(prev_mask);
data/proftpd-dfsg-1.3.7a/src/mkhome.c:73:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  umask(prev_mask);
data/proftpd-dfsg-1.3.7a/src/mkhome.c:168:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strncmp(link_path, src_dir, strlen(src_dir)) == 0) {
data/proftpd-dfsg-1.3.7a/src/mkhome.c:169: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).
    link_path = pdircat(p, dst_dir, link_path + strlen(src_dir), NULL);
data/proftpd-dfsg-1.3.7a/src/netacl.c:243: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(aclstr) == 0) {
data/proftpd-dfsg-1.3.7a/src/netacl.c:277: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 (strspn(aclstr, "0123456789ABCDEFabcdef.:") != strlen(aclstr)) {
data/proftpd-dfsg-1.3.7a/src/netacl.c:340:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
             strspn(aclstr, "0123456789ABCDEFabcdef.:!") != strlen(aclstr)) {
data/proftpd-dfsg-1.3.7a/src/netacl.c:342: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).
  } else if (strspn(aclstr, "0123456789.!") != strlen(aclstr)) {
data/proftpd-dfsg-1.3.7a/src/netacl.c:356: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).
      size_t aclstr_len = strlen(aclstr);
data/proftpd-dfsg-1.3.7a/src/netacl.c:475: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 (aclstr[strlen(aclstr)-1] == '.') {
data/proftpd-dfsg-1.3.7a/src/netacl.c:495: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).
      aclstr_len = strlen(aclstr);
data/proftpd-dfsg-1.3.7a/src/netaddr.c:253:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen(he->h_name) >= hostlen)
data/proftpd-dfsg-1.3.7a/src/netaddr.c:265:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen(ipstr) >= hostlen)
data/proftpd-dfsg-1.3.7a/src/netio.c:223:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return read(nstrm->strm_fd, buf, buflen);
data/proftpd-dfsg-1.3.7a/src/netio.c:1020: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 pr_netio_write(nstrm, buf, strlen(buf));
data/proftpd-dfsg-1.3.7a/src/netio.c:1053: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).
  return pr_netio_write_async(nstrm, buf, strlen(buf));
data/proftpd-dfsg-1.3.7a/src/netio.c:1393:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                bread = (ctrl_netio->read)(nstrm, buf, buflen);
data/proftpd-dfsg-1.3.7a/src/netio.c:1399:46:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                bread = (default_ctrl_netio->read)(nstrm, buf, buflen);
data/proftpd-dfsg-1.3.7a/src/netio.c:1412:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                bread = (data_netio->read)(nstrm, buf, buflen);
data/proftpd-dfsg-1.3.7a/src/netio.c:1418:46:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                bread = (default_data_netio->read)(nstrm, buf, buflen);
data/proftpd-dfsg-1.3.7a/src/netio.c:1427:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                bread = (othr_netio->read)(nstrm, buf, buflen);
data/proftpd-dfsg-1.3.7a/src/netio.c:1433:46:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                bread = (default_othr_netio->read)(nstrm, buf, buflen);
data/proftpd-dfsg-1.3.7a/src/netio.c:1922:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      !netio->postopen || !netio->read || !netio->reopen ||
data/proftpd-dfsg-1.3.7a/src/parser.c:99: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).
  wordlen = strlen(word);
data/proftpd-dfsg-1.3.7a/src/parser.c:536: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).
        namelen = strlen(name);
data/proftpd-dfsg-1.3.7a/src/parser.c:625: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).
    text_len = strlen(text);
data/proftpd-dfsg-1.3.7a/src/parser.c:681: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).
    cp_len = strlen(cp);
data/proftpd-dfsg-1.3.7a/src/parser.c:695: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).
      cp_len = strlen(cp);
data/proftpd-dfsg-1.3.7a/src/parser.c:778: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).
    buflen = strlen(buf);
data/proftpd-dfsg-1.3.7a/src/parser.c:957:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  path_len = strlen(path);
data/proftpd-dfsg-1.3.7a/src/parser.c:990: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).
      component_len = strlen(component);
data/proftpd-dfsg-1.3.7a/src/proctitle.c:69: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).
    envpsize += strlen(envp[i]) + 1;
data/proftpd-dfsg-1.3.7a/src/proctitle.c:78:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t envp_len = strlen(envp[i]);
data/proftpd-dfsg-1.3.7a/src/proctitle.c:99: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).
      prog_last_argv = argv[i] + strlen(argv[i]);
data/proftpd-dfsg-1.3.7a/src/proctitle.c:105: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).
      prog_last_argv = envp[i] + strlen(envp[i]);
data/proftpd-dfsg-1.3.7a/src/proctitle.c:154: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).
  procbuflen = strlen(proc_title_buf);
data/proftpd-dfsg-1.3.7a/src/proctitle.c:228: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).
  vsnprintf(proc_title_buf + strlen(proc_title_buf),
data/proftpd-dfsg-1.3.7a/src/proctitle.c:229: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).
    sizeof(proc_title_buf)-1 - strlen(proc_title_buf), fmt, msg);
data/proftpd-dfsg-1.3.7a/src/proctitle.c:237: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).
  vsnprintf(proc_title_buf + strlen(proc_title_buf),
data/proftpd-dfsg-1.3.7a/src/proctitle.c:238: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).
    sizeof(proc_title_buf)-1 - strlen(proc_title_buf), fmt, msg);
data/proftpd-dfsg-1.3.7a/src/proctitle.c:247: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).
  procbuflen = strlen(proc_title_buf);
data/proftpd-dfsg-1.3.7a/src/proctitle.c:304: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(proc_title_buf);
data/proftpd-dfsg-1.3.7a/src/proctitle.c:308: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(buf);
data/proftpd-dfsg-1.3.7a/src/redis.c:694: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).
  res = pr_redis_kadd(redis, m, key, strlen(key), value, valuesz, expires);
data/proftpd-dfsg-1.3.7a/src/redis.c:718: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).
  res = pr_redis_kdecr(redis, m, key, strlen(key), decr, value);
data/proftpd-dfsg-1.3.7a/src/redis.c:742: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).
  ptr = pr_redis_kget(p, redis, m, key, strlen(key), valuesz);
data/proftpd-dfsg-1.3.7a/src/redis.c:764: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).
  ptr = pr_redis_kget_str(p, redis, m, key, strlen(key));
data/proftpd-dfsg-1.3.7a/src/redis.c:787: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).
  res = pr_redis_kincr(redis, m, key, strlen(key), incr, value);
data/proftpd-dfsg-1.3.7a/src/redis.c:810: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).
  res = pr_redis_kremove(redis, m, key, strlen(key));
data/proftpd-dfsg-1.3.7a/src/redis.c:834:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  res = pr_redis_krename(redis, m, from, strlen(from), to, strlen(to));
data/proftpd-dfsg-1.3.7a/src/redis.c:834:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  res = pr_redis_krename(redis, m, from, strlen(from), to, strlen(to));
data/proftpd-dfsg-1.3.7a/src/redis.c:857: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).
  res = pr_redis_kset(redis, m, key, strlen(key), value, valuesz, expires);
data/proftpd-dfsg-1.3.7a/src/redis.c:882: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).
  res = pr_redis_hash_kcount(redis, m, key, strlen(key), count);
data/proftpd-dfsg-1.3.7a/src/redis.c:906: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).
  res = pr_redis_hash_kdelete(redis, m, key, strlen(key), field, strlen(field));
data/proftpd-dfsg-1.3.7a/src/redis.c:906:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  res = pr_redis_hash_kdelete(redis, m, key, strlen(key), field, strlen(field));
data/proftpd-dfsg-1.3.7a/src/redis.c:931: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).
  res = pr_redis_hash_kexists(redis, m, key, strlen(key), field, strlen(field));
data/proftpd-dfsg-1.3.7a/src/redis.c:931:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  res = pr_redis_hash_kexists(redis, m, key, strlen(key), field, strlen(field));
data/proftpd-dfsg-1.3.7a/src/redis.c:956: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).
  res = pr_redis_hash_kget(p, redis, m, key, strlen(key), field, strlen(field),
data/proftpd-dfsg-1.3.7a/src/redis.c:956:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  res = pr_redis_hash_kget(p, redis, m, key, strlen(key), field, strlen(field),
data/proftpd-dfsg-1.3.7a/src/redis.c:981: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).
  res = pr_redis_hash_kgetall(p, redis, m, key, strlen(key), hash);
data/proftpd-dfsg-1.3.7a/src/redis.c:1005: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).
  res = pr_redis_hash_kincr(redis, m, key, strlen(key), field, strlen(field),
data/proftpd-dfsg-1.3.7a/src/redis.c:1005:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  res = pr_redis_hash_kincr(redis, m, key, strlen(key), field, strlen(field),
data/proftpd-dfsg-1.3.7a/src/redis.c:1030: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).
  res = pr_redis_hash_kkeys(p, redis, m, key, strlen(key), fields);
data/proftpd-dfsg-1.3.7a/src/redis.c:1053: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).
  res = pr_redis_hash_kremove(redis, m, key, strlen(key));
data/proftpd-dfsg-1.3.7a/src/redis.c:1077: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).
  res = pr_redis_hash_kset(redis, m, key, strlen(key), field, strlen(field),
data/proftpd-dfsg-1.3.7a/src/redis.c:1077: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).
  res = pr_redis_hash_kset(redis, m, key, strlen(key), field, strlen(field),
data/proftpd-dfsg-1.3.7a/src/redis.c:1102: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).
  res = pr_redis_hash_ksetall(redis, m, key, strlen(key), hash);
data/proftpd-dfsg-1.3.7a/src/redis.c:1125: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).
  res = pr_redis_hash_kvalues(p, redis, m, key, strlen(key), values);
data/proftpd-dfsg-1.3.7a/src/redis.c:1149: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).
  res = pr_redis_list_kappend(redis, m, key, strlen(key), value, valuesz);
data/proftpd-dfsg-1.3.7a/src/redis.c:1172: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).
  res = pr_redis_list_kcount(redis, m, key, strlen(key), count);
data/proftpd-dfsg-1.3.7a/src/redis.c:1195: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).
  res = pr_redis_list_kdelete(redis, m, key, strlen(key), value, valuesz);
data/proftpd-dfsg-1.3.7a/src/redis.c:1219: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).
  res = pr_redis_list_kexists(redis, m, key, strlen(key), idx);
data/proftpd-dfsg-1.3.7a/src/redis.c:1243: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).
  res = pr_redis_list_kget(p, redis, m, key, strlen(key), idx, value, valuesz);
data/proftpd-dfsg-1.3.7a/src/redis.c:1267: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).
  res = pr_redis_list_kgetall(p, redis, m, key, strlen(key), values, valueszs);
data/proftpd-dfsg-1.3.7a/src/redis.c:1290: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).
  res = pr_redis_list_kpop(p, redis, m, key, strlen(key), value, valuesz,
data/proftpd-dfsg-1.3.7a/src/redis.c:1314: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).
  res = pr_redis_list_kpush(redis, m, key, strlen(key), value, valuesz, flags);
data/proftpd-dfsg-1.3.7a/src/redis.c:1336: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).
  res = pr_redis_list_kremove(redis, m, key, strlen(key));
data/proftpd-dfsg-1.3.7a/src/redis.c:1359: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).
  res = pr_redis_list_krotate(p, redis, m, key, strlen(key), value, valuesz);
data/proftpd-dfsg-1.3.7a/src/redis.c:1382: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).
  res = pr_redis_list_kset(redis, m, key, strlen(key), idx, value, valuesz);
data/proftpd-dfsg-1.3.7a/src/redis.c:1406: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).
  res = pr_redis_list_ksetall(redis, m, key, strlen(key), values, valueszs);
data/proftpd-dfsg-1.3.7a/src/redis.c:1430:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  res = pr_redis_set_kadd(redis, m, key, strlen(key), value, valuesz);
data/proftpd-dfsg-1.3.7a/src/redis.c:1453: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).
  res = pr_redis_set_kcount(redis, m, key, strlen(key), count);
data/proftpd-dfsg-1.3.7a/src/redis.c:1476: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).
  res = pr_redis_set_kdelete(redis, m, key, strlen(key), value, valuesz);
data/proftpd-dfsg-1.3.7a/src/redis.c:1499: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).
  res = pr_redis_set_kexists(redis, m, key, strlen(key), value, valuesz);
data/proftpd-dfsg-1.3.7a/src/redis.c:1522: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).
  res = pr_redis_set_kgetall(p, redis, m, key, strlen(key), values, valueszs);
data/proftpd-dfsg-1.3.7a/src/redis.c:1544: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).
  res = pr_redis_set_kremove(redis, m, key, strlen(key));
data/proftpd-dfsg-1.3.7a/src/redis.c:1567: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).
  res = pr_redis_set_ksetall(redis, m, key, strlen(key), values, valueszs);
data/proftpd-dfsg-1.3.7a/src/redis.c:1591: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).
  res = pr_redis_sorted_set_kadd(redis, m, key, strlen(key), value, valuesz,
data/proftpd-dfsg-1.3.7a/src/redis.c:1616: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).
  res = pr_redis_sorted_set_kcount(redis, m, key, strlen(key), count);
data/proftpd-dfsg-1.3.7a/src/redis.c:1639:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  res = pr_redis_sorted_set_kdelete(redis, m, key, strlen(key), value, valuesz);
data/proftpd-dfsg-1.3.7a/src/redis.c:1663:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  res = pr_redis_sorted_set_kexists(redis, m, key, strlen(key), value, valuesz);
data/proftpd-dfsg-1.3.7a/src/redis.c:1688: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).
  res = pr_redis_sorted_set_kgetn(p, redis, m, key, strlen(key), offset, len,
data/proftpd-dfsg-1.3.7a/src/redis.c:1713: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).
  res = pr_redis_sorted_set_kincr(redis, m, key, strlen(key), value, valuesz,
data/proftpd-dfsg-1.3.7a/src/redis.c:1737:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  res = pr_redis_sorted_set_kremove(redis, m, key, strlen(key));
data/proftpd-dfsg-1.3.7a/src/redis.c:1760: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).
  res = pr_redis_sorted_set_kscore(redis, m, key, strlen(key), value, valuesz,
data/proftpd-dfsg-1.3.7a/src/redis.c:1785: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).
  res = pr_redis_sorted_set_kset(redis, m, key, strlen(key), value, valuesz,
data/proftpd-dfsg-1.3.7a/src/redis.c:1810:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  res = pr_redis_sorted_set_ksetall(redis, m, key, strlen(key), values,
data/proftpd-dfsg-1.3.7a/src/redis.c:1946: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).
    *((size_t *) push_array(arglens)) = strlen(((char **) args->elts)[i]);
data/proftpd-dfsg-1.3.7a/src/redis.c:3285: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).
  *((size_t *) push_array(arglens)) = strlen(cmd);
data/proftpd-dfsg-1.3.7a/src/redis.c:4196: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).
  *((size_t *) push_array(arglens)) = strlen(cmd);
data/proftpd-dfsg-1.3.7a/src/redis.c:4643: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).
  *((size_t *) push_array(arglens)) = strlen(cmd);
data/proftpd-dfsg-1.3.7a/src/redis.c:5376: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).
  *((size_t *) push_array(arglens)) = strlen(cmd);
data/proftpd-dfsg-1.3.7a/src/regexp.c:277: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(pre->pcre_errstr) + 1; 
data/proftpd-dfsg-1.3.7a/src/regexp.c:313: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).
    str_len = strlen(str);
data/proftpd-dfsg-1.3.7a/src/response.c:356: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(resp_numeric);
data/proftpd-dfsg-1.3.7a/src/scoreboard.c:80:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while ((res = read(scoreboard_fd, sch, sizeof(pr_scoreboard_header_t))) !=
data/proftpd-dfsg-1.3.7a/src/scoreboard.c:822:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
  strncat(scoreboard_mutex, ".lck", sizeof(scoreboard_mutex)-strlen(path)-1);
data/proftpd-dfsg-1.3.7a/src/scoreboard.c:822:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  strncat(scoreboard_mutex, ".lck", sizeof(scoreboard_mutex)-strlen(path)-1);
data/proftpd-dfsg-1.3.7a/src/scoreboard.c:871:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((res = read(scoreboard_fd, &entry, sizeof(entry))) ==
data/proftpd-dfsg-1.3.7a/src/scoreboard.c:1001:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((res = read(scoreboard_fd, &scan_entry, sizeof(scan_entry))) <= 0) {
data/proftpd-dfsg-1.3.7a/src/scoreboard.c:1504:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    res = read(fd, &sce, sizeof(sce));
data/proftpd-dfsg-1.3.7a/src/stash.c:273: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).
  sym_namelen = strlen(sym->sym_name);
data/proftpd-dfsg-1.3.7a/src/stash.c:497: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) + 1;
data/proftpd-dfsg-1.3.7a/src/stash.c:607: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).
  directive_namelen = strlen(directive_name) + 1;
data/proftpd-dfsg-1.3.7a/src/stash.c:660: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).
  cmd_namelen = strlen(cmd_name) + 1;
data/proftpd-dfsg-1.3.7a/src/stash.c:712:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  api_namelen = strlen(api_name) + 1;
data/proftpd-dfsg-1.3.7a/src/stash.c:756: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).
  hook_namelen = strlen(hook_name) + 1;
data/proftpd-dfsg-1.3.7a/src/str.c:48: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).
  blen = strlen(src) + 1;
data/proftpd-dfsg-1.3.7a/src/str.c:78: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).
      tmp += strlen(m);
data/proftpd-dfsg-1.3.7a/src/str.c:86: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).
      blen += count * (strlen(r) - strlen(m));
data/proftpd-dfsg-1.3.7a/src/str.c:86: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).
      blen += count * (strlen(r) - strlen(m));
data/proftpd-dfsg-1.3.7a/src/str.c:128: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).
      mlen = strlen(*mptr);
data/proftpd-dfsg-1.3.7a/src/str.c:129:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      rlen = strlen(*rptr);
data/proftpd-dfsg-1.3.7a/src/str.c:132: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).
        sstrncpy(cp, *rptr, blen - strlen(pbuf));
data/proftpd-dfsg-1.3.7a/src/str.c:274: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(str) + 1;
data/proftpd-dfsg-1.3.7a/src/str.c:327: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).
    res_len = strlen(res);
data/proftpd-dfsg-1.3.7a/src/str.c:351: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).
    arglen = strlen(argp);
data/proftpd-dfsg-1.3.7a/src/str.c:377:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len += strlen(res);
data/proftpd-dfsg-1.3.7a/src/str.c:389: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).
    arglen = strlen(argp);
data/proftpd-dfsg-1.3.7a/src/str.c:410:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    slen = strlen(s);
data/proftpd-dfsg-1.3.7a/src/str.c:414: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).
    suffixlen = strlen(suffix);
data/proftpd-dfsg-1.3.7a/src/str.c:459: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).
  for (finish = &str[strlen(str)-1]; PR_ISSPACE(*finish); finish--);
data/proftpd-dfsg-1.3.7a/src/str.c:479: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(s);
data/proftpd-dfsg-1.3.7a/src/str.c:593: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).
    hex_len = strlen((char *) hex);
data/proftpd-dfsg-1.3.7a/src/str.c:645: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).
  alen = strlen(a);
data/proftpd-dfsg-1.3.7a/src/str.c:646: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).
  blen = strlen(b);
data/proftpd-dfsg-1.3.7a/src/str.c:780: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(s);
data/proftpd-dfsg-1.3.7a/src/str.c:845: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).
  text_len = strlen(text);
data/proftpd-dfsg-1.3.7a/src/str.c:1028: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(str);
data/proftpd-dfsg-1.3.7a/src/support.c:461: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).
    chroot_pathlen = strlen(session.chroot_path);
data/proftpd-dfsg-1.3.7a/src/support.c:501:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len = strlen(buf);
data/proftpd-dfsg-1.3.7a/src/support.c:561: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(dst_path);
data/proftpd-dfsg-1.3.7a/src/support.c:589:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(buf);
data/proftpd-dfsg-1.3.7a/src/support.c:658:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          strlen(session.chroot_path)) != 0) {
data/proftpd-dfsg-1.3.7a/src/support.c:916:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen(deny_str) == 4) {
data/proftpd-dfsg-1.3.7a/src/support.c:932:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen(disc_str) == 4) {
data/proftpd-dfsg-1.3.7a/src/support.c:1324: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).
  user_len = strlen(session.user);
data/proftpd-dfsg-1.3.7a/src/table.c:140: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 sz = !keysz ? strlen((const char *) key) : keysz;
data/proftpd-dfsg-1.3.7a/src/table.c:373:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    nread = read(fd, &seed, sizeof(seed));
data/proftpd-dfsg-1.3.7a/src/table.c:809: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).
    value_datasz = strlen((char *) value_data) + 1;
data/proftpd-dfsg-1.3.7a/src/table.c:812: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).
  return pr_table_kadd(tab, key_data, strlen(key_data) + 1, value_data,
data/proftpd-dfsg-1.3.7a/src/table.c:834: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).
    value_datasz = strlen((const char *) value_data) + 1;
data/proftpd-dfsg-1.3.7a/src/table.c:971:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return pr_table_kexists(tab, key_data, strlen(key_data) + 1);
data/proftpd-dfsg-1.3.7a/src/table.c:1000: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).
    key_datasz = strlen(key_data) + 1;  
data/proftpd-dfsg-1.3.7a/src/table.c:1056:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return pr_table_kremove(tab, key_data, strlen(key_data) + 1, value_datasz);
data/proftpd-dfsg-1.3.7a/src/table.c:1080: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).
    value_datasz = strlen((const char *) value_data) + 1;
data/proftpd-dfsg-1.3.7a/src/table.c:1083: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).
  return pr_table_kset(tab, key_data, strlen(key_data) + 1, value_data,
data/proftpd-dfsg-1.3.7a/src/var.c:159:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  namelen = strlen(name);
data/proftpd-dfsg-1.3.7a/src/var.c:221: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).
      v->v_datasz = strlen((char *) val);
data/proftpd-dfsg-1.3.7a/src/wtmp.c:103: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).
    utx.ut_syslen = strlen(utx.ut_host)+1;
data/proftpd-dfsg-1.3.7a/tests/api/data.c:190: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).
  sz = strlen(data);
data/proftpd-dfsg-1.3.7a/tests/api/data.c:303: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).
  res = pr_fsio_write(fh, text, strlen(text));
data/proftpd-dfsg-1.3.7a/tests/api/data.c:315: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).
  res = pr_data_sendfile(fd, &offset, strlen(text));
data/proftpd-dfsg-1.3.7a/tests/api/data.c:640: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).
  expected_len = strlen(expected);
data/proftpd-dfsg-1.3.7a/tests/api/data.c:712: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).
  buflen = strlen(buf);
data/proftpd-dfsg-1.3.7a/tests/api/data.c:808: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).
  expected_len = strlen(expected);
data/proftpd-dfsg-1.3.7a/tests/api/data.c:944: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).
  buflen = strlen(buf);
data/proftpd-dfsg-1.3.7a/tests/api/data.c:947: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).
  ascii_buflen = strlen(ascii_buf);
data/proftpd-dfsg-1.3.7a/tests/api/display.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).
    line_len = strlen(line);
data/proftpd-dfsg-1.3.7a/tests/api/fsio.c:3563:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  fs->read = root_fs->read;
data/proftpd-dfsg-1.3.7a/tests/api/fsio.c:3902: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).
  res = pr_fsio_write(fh, text, strlen(text));
data/proftpd-dfsg-1.3.7a/tests/api/fsio.c:3955: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).
  res = pr_fsio_write(fh, text, strlen(text));
data/proftpd-dfsg-1.3.7a/tests/api/fsio.c:4067:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strncmp(buf, prefix, strlen(prefix)) != 0) {
data/proftpd-dfsg-1.3.7a/tests/api/fsio.c:4079:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strncmp(buf, prefix, strlen(prefix)) != 0 &&
data/proftpd-dfsg-1.3.7a/tests/api/fsio.c:4092:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strncmp(buf, prefix, strlen(prefix)) != 0) {
data/proftpd-dfsg-1.3.7a/tests/api/fsio.c:4157:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strncmp(buf, prefix, strlen(prefix)) != 0) {
data/proftpd-dfsg-1.3.7a/tests/api/jot.c:384: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).
  text_len = strlen(text);
data/proftpd-dfsg-1.3.7a/tests/api/jot.c:400: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).
  text_len = strlen(text);
data/proftpd-dfsg-1.3.7a/tests/api/jot.c:415: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).
  text_len = strlen(text);
data/proftpd-dfsg-1.3.7a/tests/api/jot.c:1010: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).
  custom_datalen = strlen(custom_data);
data/proftpd-dfsg-1.3.7a/tests/api/misc.c:317: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).
  dst_pathlen = strlen(dst_path);
data/proftpd-dfsg-1.3.7a/tests/api/misc.c:332: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).
  dst_pathlen = strlen(dst_path);
data/proftpd-dfsg-1.3.7a/tests/api/misc.c:351: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).
  dst_pathlen = strlen(dst_path);
data/proftpd-dfsg-1.3.7a/tests/api/misc.c:368: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).
  dst_pathlen = strlen(dst_path);
data/proftpd-dfsg-1.3.7a/tests/api/misc.c:370: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).
  expected_pathlen = strlen(expected_path);
data/proftpd-dfsg-1.3.7a/tests/api/misc.c:390: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).
  dst_pathlen = strlen(dst_path);
data/proftpd-dfsg-1.3.7a/tests/api/misc.c:392:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  expected_pathlen = strlen(expected_path);
data/proftpd-dfsg-1.3.7a/tests/api/misc.c:430: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).
  dst_pathlen = strlen(dst_path);
data/proftpd-dfsg-1.3.7a/tests/api/misc.c:447: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).
  dst_pathlen = strlen(dst_path);
data/proftpd-dfsg-1.3.7a/tests/api/misc.c:464: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).
  dst_pathlen = strlen(dst_path);
data/proftpd-dfsg-1.3.7a/tests/api/misc.c:466: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).
  expected_pathlen = strlen(expected_path);
data/proftpd-dfsg-1.3.7a/tests/api/misc.c:483: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).
  dst_pathlen = strlen(dst_path);
data/proftpd-dfsg-1.3.7a/tests/api/misc.c:485: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).
  expected_pathlen = strlen(expected_path);
data/proftpd-dfsg-1.3.7a/tests/api/misc.c:502: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).
  dst_pathlen = strlen(dst_path);
data/proftpd-dfsg-1.3.7a/tests/api/misc.c:504: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).
  expected_pathlen = strlen(expected_path);
data/proftpd-dfsg-1.3.7a/tests/api/misc.c:521: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).
  dst_pathlen = strlen(dst_path);
data/proftpd-dfsg-1.3.7a/tests/api/misc.c:523: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).
  expected_pathlen = strlen(expected_path);
data/proftpd-dfsg-1.3.7a/tests/api/misc.c:540: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).
  dst_pathlen = strlen(dst_path);
data/proftpd-dfsg-1.3.7a/tests/api/misc.c:542: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).
  expected_pathlen = strlen(expected_path);
data/proftpd-dfsg-1.3.7a/tests/api/misc.c:563: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).
  dst_pathlen = strlen(dst_path);
data/proftpd-dfsg-1.3.7a/tests/api/misc.c:565: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).
  expected_pathlen = strlen(expected_path);
data/proftpd-dfsg-1.3.7a/tests/api/misc.c:585: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).
  dst_pathlen = strlen(dst_path);
data/proftpd-dfsg-1.3.7a/tests/api/misc.c:587: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).
  expected_pathlen = strlen(expected_path);
data/proftpd-dfsg-1.3.7a/tests/api/misc.c:606: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).
  dst_pathlen = strlen(dst_path);
data/proftpd-dfsg-1.3.7a/tests/api/misc.c:608: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).
  expected_pathlen = strlen(expected_path);
data/proftpd-dfsg-1.3.7a/tests/api/misc.c:630: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).
  dst_pathlen = strlen(dst_path);
data/proftpd-dfsg-1.3.7a/tests/api/misc.c:632: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).
  expected_pathlen = strlen(expected_path);
data/proftpd-dfsg-1.3.7a/tests/api/misc.c:654: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).
  dst_pathlen = strlen(dst_path);
data/proftpd-dfsg-1.3.7a/tests/api/misc.c:656: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).
  expected_pathlen = strlen(expected_path);
data/proftpd-dfsg-1.3.7a/tests/api/misc.c:681:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  dst_pathlen = strlen(dst_path);
data/proftpd-dfsg-1.3.7a/tests/api/misc.c:683: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).
  expected_pathlen = strlen(expected_path);
data/proftpd-dfsg-1.3.7a/tests/api/misc.c:817: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).
  line_len = strlen(line);
data/proftpd-dfsg-1.3.7a/tests/api/misc.c:906: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(text);
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:503:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  len = read(out_fd, buf, sizeof(buf)-1);
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:614:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  len = read(out_fd, buf, sizeof(buf)-1);
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:666:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  len = read(out_fd, buf, sizeof(buf)-1);
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:759:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  len = read(out_fd, buf, sizeof(buf)-1);
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:852:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  len = read(out_fd, buf, sizeof(buf)-1);
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:1183: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).
  res = pr_netio_telnet_gets(buf, strlen(cmd) + 2, in, out);
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:1208: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).
  cmd_len = strlen(cmd);
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:1291: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).
  cmd_len = strlen(cmd);
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:1351: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).
  res = strlen(text);
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:1404: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).
  expected_sz = strlen(expected_text);
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:1485: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).
  buflen = strlen(buf);
data/proftpd-dfsg-1.3.7a/tests/api/netio.c:1741: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).
  buflen = strlen(buf);
data/proftpd-dfsg-1.3.7a/tests/api/parser.c:517: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).
  res = pr_fsio_write(fh, text, strlen(text));
data/proftpd-dfsg-1.3.7a/tests/api/parser.c:538: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).
  res = pr_fsio_write(fh, text, strlen(text));
data/proftpd-dfsg-1.3.7a/tests/api/parser.c:609: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).
  res = pr_fsio_write(fh, text, strlen(text));
data/proftpd-dfsg-1.3.7a/tests/api/parser.c:613: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).
  res = pr_fsio_write(fh, text, strlen(text));
data/proftpd-dfsg-1.3.7a/tests/api/parser.c:617: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).
  res = pr_fsio_write(fh, text, strlen(text));
data/proftpd-dfsg-1.3.7a/tests/api/parser.c:621: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).
  res = pr_fsio_write(fh, text, strlen(text));
data/proftpd-dfsg-1.3.7a/tests/api/parser.c:625: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).
  res = pr_fsio_write(fh, text, strlen(text));
data/proftpd-dfsg-1.3.7a/tests/api/parser.c:637: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).
  res = pr_fsio_write(fh, text, strlen(text));
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:201: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).
  prefixsz = strlen(prefix);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:787: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:831: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).
  prefixsz = strlen(prefix);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:840: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:918: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:932: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).
  fail_unless(valsz == strlen(val), "Expected %lu, got %lu",
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:933:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    (unsigned long) strlen(val), (unsigned long) valsz);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:969: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).
  prefixsz = strlen(prefix);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:975: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:995: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).
  fail_unless(valsz == strlen(val), "Expected %lu, got %lu",
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:996:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    (unsigned long) strlen(val), (unsigned long) valsz);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:1054: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:1066: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).
  fail_unless(strlen(str) == strlen(val), "Expected %lu, got %lu",
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:1066: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).
  fail_unless(strlen(str) == strlen(val), "Expected %lu, got %lu",
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:1067:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    (unsigned long) strlen(val), (unsigned long) strlen(str));
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:1067: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).
    (unsigned long) strlen(val), (unsigned long) strlen(str));
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:1140: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).
  valsz = strlen(value);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:1167: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).
  valsz = strlen(value);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:1244: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).
  valsz = strlen(value);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:1271: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).
  valsz = strlen(value);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:1342: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:1406: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:1595: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:1678: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:1752: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:1818: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:1886: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:1971: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:1979: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:2058: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:2066: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:2145: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:2153: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:2229: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:2234: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:2345: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:2412: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:2480: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:2558: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:2638: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:2726: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:2734: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:2742: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:2853: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:2900: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:2964: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:3001: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:3035: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:3111: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:3119: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:3217: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:3242: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:3322: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).
  *((size_t *) push_array(valszs)) = strlen("Some JSON here");
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:3331: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).
  *((size_t *) push_array(valszs)) = strlen("bar");
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:3443: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:3517: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:3589: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:3660: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:3750: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:3758: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:3766: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:3854: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).
  *((size_t *) push_array(valszs)) = strlen("Some JSON here");
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:3863: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).
  *((size_t *) push_array(valszs)) = strlen("bar");
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:3975: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:4050: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:4125: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:4198: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:4298: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:4307: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:4316: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:4413: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:4497: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:4582: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).
  valsz = strlen(val);
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:4676: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).
  *((size_t *) push_array(valszs)) = strlen("Some JSON here");
data/proftpd-dfsg-1.3.7a/tests/api/redis.c:4685: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).
  *((size_t *) push_array(valszs)) = strlen("bar");
data/proftpd-dfsg-1.3.7a/tests/api/str.c:76:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  fail_unless(strlen(dst) == (len - 1), "Expected len %u, got len %u", len - 1,
data/proftpd-dfsg-1.3.7a/tests/api/str.c:77: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(dst));
data/proftpd-dfsg-1.3.7a/tests/api/str.c:85: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).
  fail_unless(strlen(dst) == (len - 1), "Expected len %u, got len %u", len - 1,
data/proftpd-dfsg-1.3.7a/tests/api/str.c:86: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(dst));
data/proftpd-dfsg-1.3.7a/tests/api/str.c:94: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).
  fail_unless(strlen(dst) == (len - 1), "Expected len %u, got len %u", len - 1,
data/proftpd-dfsg-1.3.7a/tests/api/str.c:95: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(dst));
data/proftpd-dfsg-1.3.7a/tests/api/str.c:103: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).
  fail_unless(strlen(dst) == 0, "Expected len %u, got len %u", 0, strlen(dst));
data/proftpd-dfsg-1.3.7a/tests/api/str.c:103:67:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  fail_unless(strlen(dst) == 0, "Expected len %u, got len %u", 0, strlen(dst));
data/proftpd-dfsg-1.3.7a/tests/api/str.c:185: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).
  fail_unless(strlen(dst) == (sizeof(dst)-1),
data/proftpd-dfsg-1.3.7a/tests/api/str.c:187: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).
    sizeof(dst)-1, strlen(dst));
data/proftpd-dfsg-1.3.7a/tests/api/str.c:465:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  fail_unless(strlen(res) == strlen(ok), "Expected len %u, got len %u",
data/proftpd-dfsg-1.3.7a/tests/api/str.c:465: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).
  fail_unless(strlen(res) == strlen(ok), "Expected len %u, got len %u",
data/proftpd-dfsg-1.3.7a/tests/api/str.c:466: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(ok), strlen(res));
data/proftpd-dfsg-1.3.7a/tests/api/str.c:466: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).
    strlen(ok), strlen(res));
data/proftpd-dfsg-1.3.7a/tests/api/str.c:488: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).
  fail_unless(strlen(res) == strlen(ok), "Expected len %u, got len %u",
data/proftpd-dfsg-1.3.7a/tests/api/str.c:488: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).
  fail_unless(strlen(res) == strlen(ok), "Expected len %u, got len %u",
data/proftpd-dfsg-1.3.7a/tests/api/str.c:489: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(ok), strlen(res));
data/proftpd-dfsg-1.3.7a/tests/api/str.c:489: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).
    strlen(ok), strlen(res));
data/proftpd-dfsg-1.3.7a/tests/api/str.c:494: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).
  fail_unless(strlen(res) == strlen(ok), "Expected len %u, got len %u",
data/proftpd-dfsg-1.3.7a/tests/api/str.c:494: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).
  fail_unless(strlen(res) == strlen(ok), "Expected len %u, got len %u",
data/proftpd-dfsg-1.3.7a/tests/api/str.c:495: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(ok), strlen(res));
data/proftpd-dfsg-1.3.7a/tests/api/str.c:495: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).
    strlen(ok), strlen(res));
data/proftpd-dfsg-1.3.7a/tests/api/str.c:500: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).
  fail_unless(strlen(res) == strlen(ok), "Expected len %u, got len %u",
data/proftpd-dfsg-1.3.7a/tests/api/str.c:500: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).
  fail_unless(strlen(res) == strlen(ok), "Expected len %u, got len %u",
data/proftpd-dfsg-1.3.7a/tests/api/str.c:501: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(ok), strlen(res));
data/proftpd-dfsg-1.3.7a/tests/api/str.c:501: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).
    strlen(ok), strlen(res));
data/proftpd-dfsg-1.3.7a/tests/api/str.c:1272: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).
  res = pr_str_bin2hex(p, str, strlen((char *) str), 0);
data/proftpd-dfsg-1.3.7a/tests/api/str.c:1279: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).
  res = pr_str_bin2hex(p, str, strlen((char *) str), 0);
data/proftpd-dfsg-1.3.7a/tests/api/str.c:1286: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).
  res = pr_str_bin2hex(p, str, strlen((char *) str), PR_STR_FL_HEX_USE_UC);
data/proftpd-dfsg-1.3.7a/tests/api/str.c:1310: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).
  hex_len = strlen((char *) hex);
data/proftpd-dfsg-1.3.7a/tests/api/str.c:1318: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).
  hex_len = strlen((char *) hex);
data/proftpd-dfsg-1.3.7a/tests/api/str.c:1334: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).
  hex_len = strlen((char *) hex);
data/proftpd-dfsg-1.3.7a/tests/api/str.c:1353: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).
  hex_len = strlen((char *) hex);
data/proftpd-dfsg-1.3.7a/tests/api/str.c:1364: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).
  hex_len = strlen((char *) hex);
data/proftpd-dfsg-1.3.7a/utils/ftpshut.c:157: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).
      shut_len = strlen(shut);
data/proftpd-dfsg-1.3.7a/utils/ftpshut.c:198:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  umask(022);
data/proftpd-dfsg-1.3.7a/utils/ftptop.c:556: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).
    ftp_sessions[ftp_nsessions] = calloc(1, strlen(buf) + 1);
data/proftpd-dfsg-1.3.7a/utils/ftptop.c:561: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).
    util_sstrncpy(ftp_sessions[ftp_nsessions++], buf, strlen(buf) + 1);
data/proftpd-dfsg-1.3.7a/utils/ftptop.c:626: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).
  now_str[strlen(now_str)-1] = '\0';
data/proftpd-dfsg-1.3.7a/utils/misc.c:69:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = strlen(buf);
data/proftpd-dfsg-1.3.7a/utils/misc.c:81: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(directive);
data/proftpd-dfsg-1.3.7a/utils/scoreboard.c:43:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while ((res = read(util_scoreboard_fd, &util_header,
data/proftpd-dfsg-1.3.7a/utils/scoreboard.c:236:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((res = read(util_scoreboard_fd, &scan_entry,
data/proftpd-dfsg-1.3.7a/utils/scoreboard.c:333:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while (read(fd, &sce, sizeof(sce)) == sizeof(sce)) {

ANALYSIS SUMMARY:

Hits = 2402
Lines analyzed = 334134 in approximately 7.97 seconds (41937 lines/second)
Physical Source Lines of Code (SLOC) = 228018
Hits@level = [0] 444 [1] 969 [2] 1164 [3] 139 [4]  84 [5]  46
Hits@level+ = [0+] 2846 [1+] 2402 [2+] 1433 [3+] 269 [4+] 130 [5+]  46
Hits/KSLOC@level+ = [0+] 12.4815 [1+] 10.5343 [2+] 6.28459 [3+] 1.17973 [4+] 0.57013 [5+] 0.201738
Dot directories skipped = 2 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.