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/prayer-1.3.5-dfsg1/servers/session_exchange.h
Examining data/prayer-1.3.5-dfsg1/servers/prayer_login.c
Examining data/prayer-1.3.5-dfsg1/servers/session_streams.c
Examining data/prayer-1.3.5-dfsg1/servers/prayer_server.h
Examining data/prayer-1.3.5-dfsg1/servers/portlist.h
Examining data/prayer-1.3.5-dfsg1/servers/session_config.h
Examining data/prayer-1.3.5-dfsg1/servers/session_unix.h
Examining data/prayer-1.3.5-dfsg1/servers/prayer.h
Examining data/prayer-1.3.5-dfsg1/servers/prayer.c
Examining data/prayer-1.3.5-dfsg1/servers/session_unix.c
Examining data/prayer-1.3.5-dfsg1/servers/prayer_server.c
Examining data/prayer-1.3.5-dfsg1/servers/portlist.c
Examining data/prayer-1.3.5-dfsg1/servers/session_config.c
Examining data/prayer-1.3.5-dfsg1/servers/session_server.h
Examining data/prayer-1.3.5-dfsg1/servers/session_main.c
Examining data/prayer-1.3.5-dfsg1/servers/server.h
Examining data/prayer-1.3.5-dfsg1/servers/session_streams.h
Examining data/prayer-1.3.5-dfsg1/servers/prayer_login.h
Examining data/prayer-1.3.5-dfsg1/servers/session_server.c
Examining data/prayer-1.3.5-dfsg1/servers/prayer_chroot.c
Examining data/prayer-1.3.5-dfsg1/servers/prayer_main.c
Examining data/prayer-1.3.5-dfsg1/servers/session_exchange.c
Examining data/prayer-1.3.5-dfsg1/servers/prayer_shared.h
Examining data/prayer-1.3.5-dfsg1/shared/gzip.h
Examining data/prayer-1.3.5-dfsg1/shared/config.h
Examining data/prayer-1.3.5-dfsg1/shared/common.h
Examining data/prayer-1.3.5-dfsg1/shared/log.c
Examining data/prayer-1.3.5-dfsg1/shared/user_agent.h
Examining data/prayer-1.3.5-dfsg1/shared/response.c
Examining data/prayer-1.3.5-dfsg1/shared/response.h
Examining data/prayer-1.3.5-dfsg1/shared/request.h
Examining data/prayer-1.3.5-dfsg1/shared/user_agent.c
Examining data/prayer-1.3.5-dfsg1/shared/log.h
Examining data/prayer-1.3.5-dfsg1/shared/gzip.c
Examining data/prayer-1.3.5-dfsg1/shared/request.c
Examining data/prayer-1.3.5-dfsg1/shared/html_common.c
Examining data/prayer-1.3.5-dfsg1/shared/html_common.h
Examining data/prayer-1.3.5-dfsg1/shared/dlopen_templates.c
Examining data/prayer-1.3.5-dfsg1/shared/dlopen_templates.h
Examining data/prayer-1.3.5-dfsg1/shared/shared.h
Examining data/prayer-1.3.5-dfsg1/shared/config.c
Examining data/prayer-1.3.5-dfsg1/utils/ssl_prune_main.c
Examining data/prayer-1.3.5-dfsg1/utils/prayer-sem-prune.c
Examining data/prayer-1.3.5-dfsg1/session/favourite.h
Examining data/prayer-1.3.5-dfsg1/session/checksum.c
Examining data/prayer-1.3.5-dfsg1/session/html_secure.c
Examining data/prayer-1.3.5-dfsg1/session/speller.c
Examining data/prayer-1.3.5-dfsg1/session/speller.h
Examining data/prayer-1.3.5-dfsg1/session/utf8_calc.h
Examining data/prayer-1.3.5-dfsg1/session/account_sieve.h
Examining data/prayer-1.3.5-dfsg1/session/session.h
Examining data/prayer-1.3.5-dfsg1/session/stream.c
Examining data/prayer-1.3.5-dfsg1/session/rfc1522.h
Examining data/prayer-1.3.5-dfsg1/session/addr.h
Examining data/prayer-1.3.5-dfsg1/session/session_streams.c
Examining data/prayer-1.3.5-dfsg1/session/stream.h
Examining data/prayer-1.3.5-dfsg1/session/mc.c
Examining data/prayer-1.3.5-dfsg1/session/session.c
Examining data/prayer-1.3.5-dfsg1/session/html_secure.h
Examining data/prayer-1.3.5-dfsg1/session/filter.h
Examining data/prayer-1.3.5-dfsg1/session/folderlist.c
Examining data/prayer-1.3.5-dfsg1/session/portlist.h
Examining data/prayer-1.3.5-dfsg1/session/account.c
Examining data/prayer-1.3.5-dfsg1/session/account_support.c
Examining data/prayer-1.3.5-dfsg1/session/dictionary.h
Examining data/prayer-1.3.5-dfsg1/session/wrap.h
Examining data/prayer-1.3.5-dfsg1/session/display.c
Examining data/prayer-1.3.5-dfsg1/session/prayer_session.h
Examining data/prayer-1.3.5-dfsg1/session/addr.c
Examining data/prayer-1.3.5-dfsg1/session/display.h
Examining data/prayer-1.3.5-dfsg1/session/lookup.h
Examining data/prayer-1.3.5-dfsg1/session/abook.c
Examining data/prayer-1.3.5-dfsg1/session/checksum.h
Examining data/prayer-1.3.5-dfsg1/session/ml.c
Examining data/prayer-1.3.5-dfsg1/session/role.c
Examining data/prayer-1.3.5-dfsg1/session/draft.h
Examining data/prayer-1.3.5-dfsg1/session/filter.c
Examining data/prayer-1.3.5-dfsg1/session/html_secure_tidy.c
Examining data/prayer-1.3.5-dfsg1/session/folderlist.h
Examining data/prayer-1.3.5-dfsg1/session/account_support.h
Examining data/prayer-1.3.5-dfsg1/session/prefs.c
Examining data/prayer-1.3.5-dfsg1/session/prefs.h
Examining data/prayer-1.3.5-dfsg1/session/utf8_calc.c
Examining data/prayer-1.3.5-dfsg1/session/html_secure_tidy.h
Examining data/prayer-1.3.5-dfsg1/session/role.h
Examining data/prayer-1.3.5-dfsg1/session/portlist.c
Examining data/prayer-1.3.5-dfsg1/session/msg.h
Examining data/prayer-1.3.5-dfsg1/session/lookup.c
Examining data/prayer-1.3.5-dfsg1/session/wrap.c
Examining data/prayer-1.3.5-dfsg1/session/mm.h
Examining data/prayer-1.3.5-dfsg1/session/mc.h
Examining data/prayer-1.3.5-dfsg1/session/sieve.c
Examining data/prayer-1.3.5-dfsg1/session/account.h
Examining data/prayer-1.3.5-dfsg1/session/account_msshell.c
Examining data/prayer-1.3.5-dfsg1/session/msgmap.c
Examining data/prayer-1.3.5-dfsg1/session/dictionary.c
Examining data/prayer-1.3.5-dfsg1/session/session_streams.h
Examining data/prayer-1.3.5-dfsg1/session/account_msshell.h
Examining data/prayer-1.3.5-dfsg1/session/account_sieve.c
Examining data/prayer-1.3.5-dfsg1/session/options.c
Examining data/prayer-1.3.5-dfsg1/session/rfc1522.c
Examining data/prayer-1.3.5-dfsg1/session/ml.h
Examining data/prayer-1.3.5-dfsg1/session/draft.c
Examining data/prayer-1.3.5-dfsg1/session/msgmap.h
Examining data/prayer-1.3.5-dfsg1/session/sieve.h
Examining data/prayer-1.3.5-dfsg1/session/mm.c
Examining data/prayer-1.3.5-dfsg1/session/favourite.c
Examining data/prayer-1.3.5-dfsg1/session/abook.h
Examining data/prayer-1.3.5-dfsg1/session/options.h
Examining data/prayer-1.3.5-dfsg1/lib/mydb.h
Examining data/prayer-1.3.5-dfsg1/lib/html.c
Examining data/prayer-1.3.5-dfsg1/lib/os_bsd.h
Examining data/prayer-1.3.5-dfsg1/lib/utf8.c
Examining data/prayer-1.3.5-dfsg1/lib/template_parse.c
Examining data/prayer-1.3.5-dfsg1/lib/template_compile.c
Examining data/prayer-1.3.5-dfsg1/lib/html.h
Examining data/prayer-1.3.5-dfsg1/lib/str.h
Examining data/prayer-1.3.5-dfsg1/lib/ipaddr.h
Examining data/prayer-1.3.5-dfsg1/lib/misc.h
Examining data/prayer-1.3.5-dfsg1/lib/ipaddr.c
Examining data/prayer-1.3.5-dfsg1/lib/template_fns.h
Examining data/prayer-1.3.5-dfsg1/lib/os_solaris.h
Examining data/prayer-1.3.5-dfsg1/lib/buffer.h
Examining data/prayer-1.3.5-dfsg1/lib/list.c
Examining data/prayer-1.3.5-dfsg1/lib/process.c
Examining data/prayer-1.3.5-dfsg1/lib/mystring.c
Examining data/prayer-1.3.5-dfsg1/lib/raven_wls_response.c
Examining data/prayer-1.3.5-dfsg1/lib/raven_wls_response.h
Examining data/prayer-1.3.5-dfsg1/lib/mymutex_sem.c
Examining data/prayer-1.3.5-dfsg1/lib/mymutex.c
Examining data/prayer-1.3.5-dfsg1/lib/mymutex.h
Examining data/prayer-1.3.5-dfsg1/lib/process.h
Examining data/prayer-1.3.5-dfsg1/lib/pool.c
Examining data/prayer-1.3.5-dfsg1/lib/iostream.h
Examining data/prayer-1.3.5-dfsg1/lib/template_structs.h
Examining data/prayer-1.3.5-dfsg1/lib/template_vals.c
Examining data/prayer-1.3.5-dfsg1/lib/os.c
Examining data/prayer-1.3.5-dfsg1/lib/buffer.c
Examining data/prayer-1.3.5-dfsg1/lib/memblock.c
Examining data/prayer-1.3.5-dfsg1/lib/iostream.c
Examining data/prayer-1.3.5-dfsg1/lib/lib.h
Examining data/prayer-1.3.5-dfsg1/lib/mystring.h
Examining data/prayer-1.3.5-dfsg1/lib/os.h
Examining data/prayer-1.3.5-dfsg1/lib/no_ssl.c
Examining data/prayer-1.3.5-dfsg1/lib/pool.h
Examining data/prayer-1.3.5-dfsg1/lib/cdb.c
Examining data/prayer-1.3.5-dfsg1/lib/mymutex_file.c
Examining data/prayer-1.3.5-dfsg1/lib/template.c
Examining data/prayer-1.3.5-dfsg1/lib/assoc.c
Examining data/prayer-1.3.5-dfsg1/lib/misc.c
Examining data/prayer-1.3.5-dfsg1/lib/template_vals.h
Examining data/prayer-1.3.5-dfsg1/lib/ssl.h
Examining data/prayer-1.3.5-dfsg1/lib/str.c
Examining data/prayer-1.3.5-dfsg1/lib/assoc.h
Examining data/prayer-1.3.5-dfsg1/lib/cdb.h
Examining data/prayer-1.3.5-dfsg1/lib/mydb.c
Examining data/prayer-1.3.5-dfsg1/lib/utf8.h
Examining data/prayer-1.3.5-dfsg1/lib/setproctitle.c
Examining data/prayer-1.3.5-dfsg1/lib/list.h
Examining data/prayer-1.3.5-dfsg1/lib/memblock.h
Examining data/prayer-1.3.5-dfsg1/lib/template_expand.c
Examining data/prayer-1.3.5-dfsg1/lib/mydb_db3.c
Examining data/prayer-1.3.5-dfsg1/lib/setproctitle.h
Examining data/prayer-1.3.5-dfsg1/lib/ssl.c
Examining data/prayer-1.3.5-dfsg1/lib/os_linux.h
Examining data/prayer-1.3.5-dfsg1/templates/src/log.c
Examining data/prayer-1.3.5-dfsg1/templates/src/template_compile_main.c
Examining data/prayer-1.3.5-dfsg1/templates/src/template_expand_main.c
Examining data/prayer-1.3.5-dfsg1/templates/src/empty.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_roles_entry.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_disp_unmark.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_expunge1.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_hdrs.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_rm1.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_favourites.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_filter_mbox.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_aggregate_tmp.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_passwd.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_redirect.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_mark.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_abook_update.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_reply.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_rm.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_abook_compose2.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_forward.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_dir_check.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_dictionary.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_restart.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_delete.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_disp_undelete.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_spam.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_detach.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_error.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_unmark.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_include.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_disp_mark.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_disp_delete.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_subscribe.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_manage.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_compose1.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_copy_msg.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_abook_add.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_list.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_welcome.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_spell.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_vacation.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_abook_export.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_abook_compose.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_transfer.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_abook_list.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_send.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_change.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_help.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_upload_xfer.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_copy.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_upload_select.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_sizes.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_unsubscribe.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_display.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_aggregate.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_search.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_abook_xfer.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_preferred.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_abook_lookup.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_reply1.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_upload_exit.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_sieve.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_zoom.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_abook_sort.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_logout.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_rename.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_forward1.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_download_xfer.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_reply2.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_rename_item.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_quota.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_folders.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_list_sort.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_undelete.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_add_address.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_rawdisplay.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_filter.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_abook_save.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_roles_list.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_abook_search.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_abook_lookup_add.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_download.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_init.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_block.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_attachments.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_check_cookie.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_prefs.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_filter_select.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd.h
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_abook_import.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_expunge.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_resume.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_checkpoint.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_printable.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_abook_take.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_exit.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_action_stub.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_vaclog.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_create.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_fullname.c
Examining data/prayer-1.3.5-dfsg1/cmd/cmd_compose.c
Examining data/prayer-1.3.5-dfsg1/accountd/checksum.c
Examining data/prayer-1.3.5-dfsg1/accountd/config.h
Examining data/prayer-1.3.5-dfsg1/accountd/common.h
Examining data/prayer-1.3.5-dfsg1/accountd/log.c
Examining data/prayer-1.3.5-dfsg1/accountd/test.c
Examining data/prayer-1.3.5-dfsg1/accountd/file.h
Examining data/prayer-1.3.5-dfsg1/accountd/authenticate.h
Examining data/prayer-1.3.5-dfsg1/accountd/filter.h
Examining data/prayer-1.3.5-dfsg1/accountd/config.c
Examining data/prayer-1.3.5-dfsg1/accountd/quota.h
Examining data/prayer-1.3.5-dfsg1/accountd/mail.c
Examining data/prayer-1.3.5-dfsg1/accountd/mail.h
Examining data/prayer-1.3.5-dfsg1/accountd/fullname.c
Examining data/prayer-1.3.5-dfsg1/accountd/accountd.c
Examining data/prayer-1.3.5-dfsg1/accountd/checksum.h
Examining data/prayer-1.3.5-dfsg1/accountd/password.h
Examining data/prayer-1.3.5-dfsg1/accountd/quota.c
Examining data/prayer-1.3.5-dfsg1/accountd/log.h
Examining data/prayer-1.3.5-dfsg1/accountd/fullname.h
Examining data/prayer-1.3.5-dfsg1/accountd/password.c
Examining data/prayer-1.3.5-dfsg1/accountd/file.c
Examining data/prayer-1.3.5-dfsg1/accountd/accountd.h
Examining data/prayer-1.3.5-dfsg1/accountd/filter.c
Examining data/prayer-1.3.5-dfsg1/accountd/authenticate.c

FINAL RESULTS:

data/prayer-1.3.5-dfsg1/lib/template_expand.c:381:9:  [5] (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 high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
        strncat(buf, "-", sizeof(buf));
data/prayer-1.3.5-dfsg1/accountd/accountd.c:283:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr,
data/prayer-1.3.5-dfsg1/accountd/accountd.c:286:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr,
data/prayer-1.3.5-dfsg1/accountd/accountd.c:289:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr,
data/prayer-1.3.5-dfsg1/accountd/accountd.c:292:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr,
data/prayer-1.3.5-dfsg1/accountd/authenticate.c:176:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(tmp, "%s", spwd->sp_pwdp);
data/prayer-1.3.5-dfsg1/accountd/authenticate.c:179:24:  [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.
        if ((crypted = crypt(password, tmp)) != NIL)
data/prayer-1.3.5-dfsg1/accountd/authenticate.c:184:24:  [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.
        if ((crypted = crypt(password, spwd->sp_pwdp)) != NIL)
data/prayer-1.3.5-dfsg1/accountd/authenticate.c:207:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(tmp, "$1$%s", pwd->pw_passwd);
data/prayer-1.3.5-dfsg1/accountd/authenticate.c:210:24:  [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.
        if ((crypted = crypt(password, tmp)) != NIL)
data/prayer-1.3.5-dfsg1/accountd/authenticate.c:215:24:  [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.
        if ((crypted = crypt(password, pwd->pw_passwd)) != NIL)
data/prayer-1.3.5-dfsg1/accountd/filter.c:277:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(file, ("This message is automatically generated "
data/prayer-1.3.5-dfsg1/accountd/filter.c:279:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(file, ("message (perhaps re-directed) to "
data/prayer-1.3.5-dfsg1/accountd/mail.c:23:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(*sp, s);
data/prayer-1.3.5-dfsg1/cmd/cmd_send.c:72:9:  [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(path, argv);
data/prayer-1.3.5-dfsg1/lib/memblock.c:161:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(m->block, s);
data/prayer-1.3.5-dfsg1/lib/memblock.c:178:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(m->block, s);
data/prayer-1.3.5-dfsg1/lib/memblock.c:193:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy((char *) m->block, s);
data/prayer-1.3.5-dfsg1/lib/mydb_db3.c:303:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(dstname, dirname);
data/prayer-1.3.5-dfsg1/lib/mydb_db3.c:322: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(dp, strrchr(*fname, '/'));
data/prayer-1.3.5-dfsg1/lib/mydb_db3.c:345: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(dp, strrchr(*list, '/'));
data/prayer-1.3.5-dfsg1/lib/mystring.c:756:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(s, dir);
data/prayer-1.3.5-dfsg1/lib/mystring.c:759:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(t, file);
data/prayer-1.3.5-dfsg1/lib/pool.c:178:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(s, value);
data/prayer-1.3.5-dfsg1/lib/pool.c:201:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(s, s1);
data/prayer-1.3.5-dfsg1/lib/pool.c:202:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(s, s2);
data/prayer-1.3.5-dfsg1/lib/pool.c:226:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(s, s1);
data/prayer-1.3.5-dfsg1/lib/pool.c:227:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(s, s2);
data/prayer-1.3.5-dfsg1/lib/pool.c:228:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(s, s3);
data/prayer-1.3.5-dfsg1/lib/pool.c:428:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(s, *p);
data/prayer-1.3.5-dfsg1/lib/process.c:41:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(result, "%s=%s", key, value);
data/prayer-1.3.5-dfsg1/lib/setproctitle.c:180:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    (void) strcpy(p, progname);
data/prayer-1.3.5-dfsg1/lib/setproctitle.c:187:12:  [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.
    (void) vsnprintf(p, SPACELEFT(buf, p), fmt, ap);
data/prayer-1.3.5-dfsg1/lib/setproctitle.c:223:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    (void) strcpy(Argv[0], buf);
data/prayer-1.3.5-dfsg1/lib/utf8.c:376:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy((char*)*dst, UNI_REPLACEMENT_CHAR_UTF8);
data/prayer-1.3.5-dfsg1/servers/prayer_chroot.c:68: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(cmd, nargv);
data/prayer-1.3.5-dfsg1/servers/prayer_chroot.c:104: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(cmd, nargv);
data/prayer-1.3.5-dfsg1/servers/prayer_chroot.c:166:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr,
data/prayer-1.3.5-dfsg1/servers/prayer_chroot.c:168:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr,
data/prayer-1.3.5-dfsg1/servers/prayer_chroot.c:171:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr,
data/prayer-1.3.5-dfsg1/servers/prayer_chroot.c:174:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr,
data/prayer-1.3.5-dfsg1/servers/prayer_chroot.c:177:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr,
data/prayer-1.3.5-dfsg1/servers/prayer_chroot.c:179:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr,
data/prayer-1.3.5-dfsg1/servers/prayer_chroot.c:182:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr,
data/prayer-1.3.5-dfsg1/servers/prayer_chroot.c:184:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr,
data/prayer-1.3.5-dfsg1/servers/prayer_chroot.c:187:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr,
data/prayer-1.3.5-dfsg1/servers/prayer_main.c:68: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(cmd, nargv);
data/prayer-1.3.5-dfsg1/servers/prayer_main.c:104: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(cmd, nargv);
data/prayer-1.3.5-dfsg1/servers/prayer_main.c:166:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr,
data/prayer-1.3.5-dfsg1/servers/prayer_main.c:168:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr,
data/prayer-1.3.5-dfsg1/servers/prayer_main.c:171:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr,
data/prayer-1.3.5-dfsg1/servers/prayer_main.c:174:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr,
data/prayer-1.3.5-dfsg1/servers/prayer_main.c:177:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr,
data/prayer-1.3.5-dfsg1/servers/prayer_main.c:179:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr,
data/prayer-1.3.5-dfsg1/servers/prayer_main.c:182:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr,
data/prayer-1.3.5-dfsg1/servers/prayer_main.c:184:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr,
data/prayer-1.3.5-dfsg1/servers/prayer_main.c:187:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr,
data/prayer-1.3.5-dfsg1/servers/session_main.c:25: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(cmd, nargv);
data/prayer-1.3.5-dfsg1/servers/session_main.c:86:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr,
data/prayer-1.3.5-dfsg1/servers/session_main.c:88:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr,
data/prayer-1.3.5-dfsg1/servers/session_main.c:91:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr,
data/prayer-1.3.5-dfsg1/servers/session_main.c:94:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr, ("  --debug:           Enable debugging\n"));
data/prayer-1.3.5-dfsg1/servers/session_main.c:95:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr,
data/prayer-1.3.5-dfsg1/servers/session_main.c:98:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr,
data/prayer-1.3.5-dfsg1/session/html_secure_tidy.c:73:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(buf, s);
data/prayer-1.3.5-dfsg1/session/mc.c:26:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(result, "%s %d %d",
data/prayer-1.3.5-dfsg1/session/mc.c:55:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(result, "%s %02d %04d %02d:%02d ",
data/prayer-1.3.5-dfsg1/session/ml.c:677:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(user, this_session->username);
data/prayer-1.3.5-dfsg1/session/ml.c:678:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(pwd, this_session->password);
data/prayer-1.3.5-dfsg1/session/sieve.c:438:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(src, "%c%s%c%s", '\0', username, '\0', password);
data/prayer-1.3.5-dfsg1/session/speller.c:104:17:  [4] (shell) execl:
  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.
                execl(config->aspell_path, "aspell", "-a", "--mode=email",
data/prayer-1.3.5-dfsg1/session/speller.c:107:17:  [4] (shell) execl:
  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.
                execl(config->aspell_path, "aspell", "-a",
data/prayer-1.3.5-dfsg1/session/speller.c:111:13:  [4] (shell) execl:
  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.
            execl(config->ispell_path, "ispell", "-a", "-d",
data/prayer-1.3.5-dfsg1/shared/log.c:211:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buffer, "%s %c%c %c%c:%c%c:%c%c ",
data/prayer-1.3.5-dfsg1/shared/log.c:229:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(buffer, "(%s) ", username);
data/prayer-1.3.5-dfsg1/shared/request.c:437:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(s, oldvalue);        /* Should be able to improve this */
data/prayer-1.3.5-dfsg1/shared/request.c:439:13:  [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(s, value);
data/prayer-1.3.5-dfsg1/shared/request.c:1123:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(s, oldvalue);        /* Should be able to improve this */
data/prayer-1.3.5-dfsg1/shared/request.c:1125:13:  [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(s, value);
data/prayer-1.3.5-dfsg1/utils/ssl_prune_main.c:44:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr,
data/prayer-1.3.5-dfsg1/utils/ssl_prune_main.c:46:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr,
data/prayer-1.3.5-dfsg1/utils/ssl_prune_main.c:49:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr,
data/prayer-1.3.5-dfsg1/utils/ssl_prune_main.c:52:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr,
data/prayer-1.3.5-dfsg1/utils/ssl_prune_main.c:54:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr,
data/prayer-1.3.5-dfsg1/utils/ssl_prune_main.c:57:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr,
data/prayer-1.3.5-dfsg1/accountd/accountd.c:261:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv("ACCOUNTD_CONFIG_FILE"))
data/prayer-1.3.5-dfsg1/accountd/accountd.c:262: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.
        config_filename = getenv("ACCOUNTD_CONFIG_FILE");
data/prayer-1.3.5-dfsg1/servers/prayer_chroot.c:154:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv("PRAYER_CONFIG_FILE"))
data/prayer-1.3.5-dfsg1/servers/prayer_chroot.c:155: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.
        config_filename = getenv("PRAYER_CONFIG_FILE");
data/prayer-1.3.5-dfsg1/servers/prayer_chroot.c:291:13:  [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("/chroot/prayer") < 0) {
data/prayer-1.3.5-dfsg1/servers/prayer_main.c:154:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv("PRAYER_CONFIG_FILE"))
data/prayer-1.3.5-dfsg1/servers/prayer_main.c:155: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.
        config_filename = getenv("PRAYER_CONFIG_FILE");
data/prayer-1.3.5-dfsg1/servers/session_main.c:74:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv("PRAYER_CONFIG_FILE"))
data/prayer-1.3.5-dfsg1/servers/session_main.c:75: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.
        config_filename = getenv("PRAYER_CONFIG_FILE");
data/prayer-1.3.5-dfsg1/session/draft.c:1236:33:  [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) gethostid(), random(), time(0), (long) getpid());
data/prayer-1.3.5-dfsg1/shared/config.c:2272:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv("PRAYER_HOSTNAME"))
data/prayer-1.3.5-dfsg1/shared/config.c:2274:39:  [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.
            pool_strdup(config->pool, getenv("PRAYER_HOSTNAME"));
data/prayer-1.3.5-dfsg1/utils/ssl_prune_main.c:32:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv("PRAYER_CONFIG_FILE"))
data/prayer-1.3.5-dfsg1/utils/ssl_prune_main.c:33: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.
        config_filename = getenv("PRAYER_CONFIG_FILE");
data/prayer-1.3.5-dfsg1/accountd/accountd.c:101:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[MAXLENGTH];
data/prayer-1.3.5-dfsg1/accountd/authenticate.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 tmp[64];
data/prayer-1.3.5-dfsg1/accountd/authenticate.c:205:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char tmp[64];
data/prayer-1.3.5-dfsg1/accountd/authenticate.c:249:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[MAXLENGTH];
data/prayer-1.3.5-dfsg1/accountd/checksum.c:54:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[MAXLENGTH], *endbuffer, *p;
data/prayer-1.3.5-dfsg1/accountd/checksum.c:59: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 ((file = fopen(config->forward_name, "r")) == NULL)
data/prayer-1.3.5-dfsg1/accountd/checksum.c:103:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[MAXLENGTH], *endbuffer;
data/prayer-1.3.5-dfsg1/accountd/checksum.c:107: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 ((file = fopen(name, "r")) == NULL)
data/prayer-1.3.5-dfsg1/accountd/checksum.c:122: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 ((file = fopen(name, "a")) == NULL)
data/prayer-1.3.5-dfsg1/accountd/config.c:243: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).
    *result = atoi(text);
data/prayer-1.3.5-dfsg1/accountd/config.c:318: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).
    *result = (multiple * atoi(text));
data/prayer-1.3.5-dfsg1/accountd/config.c:711: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).
    if ((fd = open(filename, O_RDONLY, 0)) < 0) {
data/prayer-1.3.5-dfsg1/accountd/file.c:80: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 ((file = fopen(name, "r")) == NIL) {
data/prayer-1.3.5-dfsg1/accountd/file.c:141: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).
    len = atoi(size + 1);
data/prayer-1.3.5-dfsg1/accountd/file.c:153: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 ((file = fopen(name, "w")) == NIL) {
data/prayer-1.3.5-dfsg1/accountd/filter.c:231:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[MAXLENGTH];
data/prayer-1.3.5-dfsg1/accountd/filter.c:233:20:  [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 ((aliases = fopen(config->aliases_name, "r")) == NIL)
data/prayer-1.3.5-dfsg1/accountd/filter.c:306: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).
    threshold = atoi(filter->threshold);
data/prayer-1.3.5-dfsg1/accountd/filter.c:743: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 ((file = fopen(config->forward_name, "w")) == NIL)
data/prayer-1.3.5-dfsg1/accountd/fullname.c:118:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[MAXLENGTH];
data/prayer-1.3.5-dfsg1/accountd/mail.c:41:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[MAXLENGTH];
data/prayer-1.3.5-dfsg1/accountd/mail.c:42:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char tmp[2 * MAXLENGTH];     /* Safe upper bound */
data/prayer-1.3.5-dfsg1/accountd/mail.c:172:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            ((file = fopen(config->msforward_name, "r")) == NULL)) {
data/prayer-1.3.5-dfsg1/accountd/mail.c:193: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 ((file = fopen(config->forward_name, "r")) == NULL) {
data/prayer-1.3.5-dfsg1/accountd/mail.c:256: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).
    len = atoi(size + 1);
data/prayer-1.3.5-dfsg1/accountd/mail.c:290: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 ((file = fopen(config->msforward_name, "w")) == NIL) {
data/prayer-1.3.5-dfsg1/accountd/quota.c:28:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[MAXLENGTH];
data/prayer-1.3.5-dfsg1/accountd/quota.c:56: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).
                    bused = atoi(value);
data/prayer-1.3.5-dfsg1/accountd/quota.c:58: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).
                    blimit = atoi(value);
data/prayer-1.3.5-dfsg1/accountd/quota.c:60: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).
                    iused = atoi(value);
data/prayer-1.3.5-dfsg1/accountd/quota.c:62: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).
                    ilimit = atoi(value);
data/prayer-1.3.5-dfsg1/accountd/quota.c:89: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).
                bused = atoi(current);
data/prayer-1.3.5-dfsg1/accountd/quota.c:90:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                blimit = atoi(limit);
data/prayer-1.3.5-dfsg1/accountd/quota.c:92: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).
                iused = atoi(current);
data/prayer-1.3.5-dfsg1/accountd/quota.c:93:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                ilimit = atoi(limit);
data/prayer-1.3.5-dfsg1/accountd/test.c:17:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[BUFFER_SIZE];
data/prayer-1.3.5-dfsg1/accountd/test.c:20: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).
    if ((fd = open("/dev/tty", O_RDWR)) < 0)
data/prayer-1.3.5-dfsg1/accountd/test.c:37: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(&attr, &oldattr, sizeof(struct termios));
data/prayer-1.3.5-dfsg1/cmd/cmd_abook_list.c:60: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).
            num = atoi(key + strlen("to_")) - 1;
data/prayer-1.3.5-dfsg1/cmd/cmd_abook_list.c:66: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).
            num = atoi(key + strlen("cc_")) - 1;
data/prayer-1.3.5-dfsg1/cmd/cmd_abook_list.c:72: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).
            num = atoi(key + strlen("bcc_")) - 1;
data/prayer-1.3.5-dfsg1/cmd/cmd_abook_list.c:189:41:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            unsigned long page = pstr ? atoi(pstr) : 0;
data/prayer-1.3.5-dfsg1/cmd/cmd_abook_list.c:200:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        abook->current = atoi(request->argv[1]);        /* Move to page */
data/prayer-1.3.5-dfsg1/cmd/cmd_abook_lookup.c:191: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).
        if ((offset = atoi(key)) > max)
data/prayer-1.3.5-dfsg1/cmd/cmd_abook_lookup.c:242: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).
            lookup->current = atoi(request->argv[1]);  /* Move to page */
data/prayer-1.3.5-dfsg1/cmd/cmd_abook_lookup.c:266:37:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        unsigned long page = pstr ? atoi(pstr) : 0;
data/prayer-1.3.5-dfsg1/cmd/cmd_aggregate.c:146:37:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        unsigned long page = pstr ? atoi(pstr) : 0;
data/prayer-1.3.5-dfsg1/cmd/cmd_aggregate_tmp.c:33: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).
        msgno = atoi(key);
data/prayer-1.3.5-dfsg1/cmd/cmd_aggregate_tmp.c:34: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).
        msguid = atoi(s + 1);
data/prayer-1.3.5-dfsg1/cmd/cmd_aggregate_tmp.c:198: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).
        msgno = atoi(key);
data/prayer-1.3.5-dfsg1/cmd/cmd_aggregate_tmp.c:199: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).
        msguid = atoi(s + 1);
data/prayer-1.3.5-dfsg1/cmd/cmd_aggregate_tmp.c:243: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).
        msgno = atoi(key);
data/prayer-1.3.5-dfsg1/cmd/cmd_aggregate_tmp.c:244: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).
        msguid = atoi(s + 1);
data/prayer-1.3.5-dfsg1/cmd/cmd_aggregate_tmp.c:291:37:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        unsigned long page = pstr ? atoi(pstr) : 0;
data/prayer-1.3.5-dfsg1/cmd/cmd_block.c:80: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).
            offset = atoi(request->argv[2]);
data/prayer-1.3.5-dfsg1/cmd/cmd_checkpoint.c:15:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char current[64];
data/prayer-1.3.5-dfsg1/cmd/cmd_checkpoint.c:34:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(current, "%02d:%02d:%02d %+03d%02d",
data/prayer-1.3.5-dfsg1/cmd/cmd_compose.c:219:57:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        (s = assoc_lookup(h, "postponed")) && ((value = atoi(s)) > 0)) {
data/prayer-1.3.5-dfsg1/cmd/cmd_copy.c:56: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).
        msgno = atoi(request->argv[1]);
data/prayer-1.3.5-dfsg1/cmd/cmd_copy.c:57: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).
        msgno_uid = atoi(request->argv[2]);
data/prayer-1.3.5-dfsg1/cmd/cmd_delete.c:22: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).
    msgno = atoi(request->argv[1]);
data/prayer-1.3.5-dfsg1/cmd/cmd_delete.c:23: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).
    msguid = atoi(request->argv[2]);
data/prayer-1.3.5-dfsg1/cmd/cmd_detach.c:21: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).
    draft_delete_attachment(draft, atoi(request->argv[1]));
data/prayer-1.3.5-dfsg1/cmd/cmd_dir_check.c:15:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char current[64];
data/prayer-1.3.5-dfsg1/cmd/cmd_dir_check.c:34:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(current, "%02d:%02d:%02d %+03d%02d",
data/prayer-1.3.5-dfsg1/cmd/cmd_disp_delete.c:26: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).
    msgno = atoi(request->argv[1]);
data/prayer-1.3.5-dfsg1/cmd/cmd_disp_delete.c:27: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).
    msguid = atoi(request->argv[2]);
data/prayer-1.3.5-dfsg1/cmd/cmd_disp_mark.c:26: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).
    msgno = atoi(request->argv[1]);
data/prayer-1.3.5-dfsg1/cmd/cmd_disp_mark.c:27: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).
    msguid = atoi(request->argv[2]);
data/prayer-1.3.5-dfsg1/cmd/cmd_disp_undelete.c:26: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).
    msgno = atoi(request->argv[1]);
data/prayer-1.3.5-dfsg1/cmd/cmd_disp_undelete.c:27: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).
    msguid = atoi(request->argv[2]);
data/prayer-1.3.5-dfsg1/cmd/cmd_disp_unmark.c:26: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).
    msgno = atoi(request->argv[1]);
data/prayer-1.3.5-dfsg1/cmd/cmd_disp_unmark.c:27: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).
    msguid = atoi(request->argv[2]);
data/prayer-1.3.5-dfsg1/cmd/cmd_display.c:80: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).
        msgno = atoi(request->argv[1]);
data/prayer-1.3.5-dfsg1/cmd/cmd_display.c:81: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).
        msguid = atoi(request->argv[2]);
data/prayer-1.3.5-dfsg1/cmd/cmd_download.c:24: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).
        msgno = atoi(request->argv[1]);
data/prayer-1.3.5-dfsg1/cmd/cmd_download.c:25: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).
        msguid = atoi(request->argv[2]);
data/prayer-1.3.5-dfsg1/cmd/cmd_download_xfer.c:29:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmp[MAILTMPLEN];
data/prayer-1.3.5-dfsg1/cmd/cmd_filter.c:113: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).
            offset = atoi(request->argv[2]);
data/prayer-1.3.5-dfsg1/cmd/cmd_forward.c:46: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).
        msgno = atoi(request->argv[1]);
data/prayer-1.3.5-dfsg1/cmd/cmd_forward.c:47: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).
        msguid = atoi(request->argv[2]);
data/prayer-1.3.5-dfsg1/cmd/cmd_forward.c:55: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).
        session->current = atoi(request->argv[1]);
data/prayer-1.3.5-dfsg1/cmd/cmd_list.c:343: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).
        unsigned long msgno = atoi(request->argv[1]);
data/prayer-1.3.5-dfsg1/cmd/cmd_list.c:344:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        unsigned long msguid = atoi(request->argv[2]);
data/prayer-1.3.5-dfsg1/cmd/cmd_mark.c:26: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).
        unsigned long msgno = atoi(request->argv[2]);
data/prayer-1.3.5-dfsg1/cmd/cmd_mark.c:27:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        unsigned long msguid = atoi(request->argv[3]);
data/prayer-1.3.5-dfsg1/cmd/cmd_mark.c:47: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).
        unsigned long msgno = atoi(request->argv[1]);
data/prayer-1.3.5-dfsg1/cmd/cmd_mark.c:48:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        unsigned long msguid = atoi(request->argv[2]);
data/prayer-1.3.5-dfsg1/cmd/cmd_prefs.c:256: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).
        int value = atoi(s);
data/prayer-1.3.5-dfsg1/cmd/cmd_prefs.c:278: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).
        int value = atoi(s);
data/prayer-1.3.5-dfsg1/cmd/cmd_prefs.c:697: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).
        if (((value = atoi(s)) > 0) && (value <= 120)) {
data/prayer-1.3.5-dfsg1/cmd/cmd_prefs.c:706: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).
        if (((value = atoi(s)) > 0) && (value <= 120)) {
data/prayer-1.3.5-dfsg1/cmd/cmd_prefs.c:715: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).
        if (((value = atoi(s)) > 0) && (value <= 120)) {
data/prayer-1.3.5-dfsg1/cmd/cmd_prefs.c:724: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).
        if (((value = atoi(s)) > 0) && (value <= 120)) {
data/prayer-1.3.5-dfsg1/cmd/cmd_prefs.c:733: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).
        if (((value = atoi(s)) > 40) && (value <= 120)) {
data/prayer-1.3.5-dfsg1/cmd/cmd_printable.c:58: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).
        msgno = atoi(request->argv[1]);
data/prayer-1.3.5-dfsg1/cmd/cmd_printable.c:59: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).
        msguid = atoi(request->argv[2]);
data/prayer-1.3.5-dfsg1/cmd/cmd_quota.c:66:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[64];
data/prayer-1.3.5-dfsg1/cmd/cmd_quota.c:71:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf, "%lu.%lu", whole, fraction);
data/prayer-1.3.5-dfsg1/cmd/cmd_quota.c:73:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf, "%lu.0%lu", whole, fraction);
data/prayer-1.3.5-dfsg1/cmd/cmd_quota.c:81:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[64], *s;
data/prayer-1.3.5-dfsg1/cmd/cmd_quota.c:85:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(buf, "100.00%");
data/prayer-1.3.5-dfsg1/cmd/cmd_rawdisplay.c:33: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).
    msgno = atoi(request->argv[1]);
data/prayer-1.3.5-dfsg1/cmd/cmd_rawdisplay.c:34: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).
    msguid = atoi(request->argv[2]);
data/prayer-1.3.5-dfsg1/cmd/cmd_reply.c:30: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).
        msgno = atoi(request->argv[2]);
data/prayer-1.3.5-dfsg1/cmd/cmd_reply.c:31: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).
        msguid = atoi(request->argv[3]);
data/prayer-1.3.5-dfsg1/cmd/cmd_reply.c:38: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).
        msgno = atoi(request->argv[1]);
data/prayer-1.3.5-dfsg1/cmd/cmd_reply.c:39: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).
        msguid = atoi(request->argv[2]);
data/prayer-1.3.5-dfsg1/cmd/cmd_resume.c:25: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).
    msgno = atoi(request->argv[1]);
data/prayer-1.3.5-dfsg1/cmd/cmd_resume.c:26: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).
    msguid = atoi(request->argv[2]);
data/prayer-1.3.5-dfsg1/cmd/cmd_search.c:21:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char *date_month[12] = {
data/prayer-1.3.5-dfsg1/cmd/cmd_search.c:267: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).
    day = atoi(assoc_lookup(h, "date_day"));
data/prayer-1.3.5-dfsg1/cmd/cmd_search.c:268: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).
    month = atoi(assoc_lookup(h, "date_month"));
data/prayer-1.3.5-dfsg1/cmd/cmd_search.c:269: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).
    year = atoi(assoc_lookup(h, "date_year"));
data/prayer-1.3.5-dfsg1/cmd/cmd_search.c:412: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).
    size = atoi(value);
data/prayer-1.3.5-dfsg1/cmd/cmd_send.c:65: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).
        open("/dev/null", O_WRONLY | O_CREAT | O_APPEND, 0666);
data/prayer-1.3.5-dfsg1/cmd/cmd_send.c:109: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).
        if ((file = fopen(path, "a+")))
data/prayer-1.3.5-dfsg1/cmd/cmd_sieve.c:41: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).
        ((lineno=atoi(s+strlen("line "))) == 0)) {
data/prayer-1.3.5-dfsg1/cmd/cmd_sieve.c:73:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *line, *errline, tmp[64];
data/prayer-1.3.5-dfsg1/cmd/cmd_sieve.c:79: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).
            ((err_lineno = atoi(errline + strlen("line "))) > 0))
data/prayer-1.3.5-dfsg1/cmd/cmd_sieve.c:92:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(tmp, "%5lu", lineno);
data/prayer-1.3.5-dfsg1/cmd/cmd_sieve.c:104: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).
                    ((err_lineno = atoi(errline + strlen("line "))) > lineno))
data/prayer-1.3.5-dfsg1/cmd/cmd_spam.c:135:39:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    if (!(s && string_isnumber(s) && (atoi(s) > 0))) {
data/prayer-1.3.5-dfsg1/cmd/cmd_spam.c:143: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).
    account->spam_threshold = atoi(s);
data/prayer-1.3.5-dfsg1/cmd/cmd_spam.c:161:43:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        if (!(t && string_isnumber(t) && (atoi(t) >= 0))) {
data/prayer-1.3.5-dfsg1/cmd/cmd_spam.c:168:39:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        account->spam_purge_timeout = atoi(t);
data/prayer-1.3.5-dfsg1/cmd/cmd_spell.c:76: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(string_get_token(&s));
data/prayer-1.3.5-dfsg1/cmd/cmd_spell.c:80: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).
    offset = atoi(string_get_token(&s));  /* Snarfs trailing ':' as well */
data/prayer-1.3.5-dfsg1/cmd/cmd_undelete.c:22: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).
    msgno = atoi(request->argv[1]);
data/prayer-1.3.5-dfsg1/cmd/cmd_undelete.c:23: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).
    msguid = atoi(request->argv[2]);
data/prayer-1.3.5-dfsg1/cmd/cmd_unmark.c:26: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).
        unsigned long msgno = atoi(request->argv[2]);
data/prayer-1.3.5-dfsg1/cmd/cmd_unmark.c:27:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        unsigned long msguid = atoi(request->argv[3]);
data/prayer-1.3.5-dfsg1/cmd/cmd_unmark.c:47: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).
        unsigned long msgno = atoi(request->argv[1]);
data/prayer-1.3.5-dfsg1/cmd/cmd_unmark.c:48:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        unsigned long msguid = atoi(request->argv[2]);
data/prayer-1.3.5-dfsg1/cmd/cmd_upload_select.c:17:11:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    FILE *tmpfile;
data/prayer-1.3.5-dfsg1/cmd/cmd_upload_select.c:24:15:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    if ((fd = mkstemp(tmpfname)) < 0)
data/prayer-1.3.5-dfsg1/cmd/cmd_upload_select.c:34:40:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        fputc((*data) ? (*data) : ' ', tmpfile);
data/prayer-1.3.5-dfsg1/cmd/cmd_upload_select.c:39:12:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    fclose(tmpfile);
data/prayer-1.3.5-dfsg1/cmd/cmd_vacation.c:94:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        if (!(string_isnumber(s) && (atoi(s) >= 0))) {
data/prayer-1.3.5-dfsg1/cmd/cmd_vacation.c:101:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        account->vacation_days = atoi(s);
data/prayer-1.3.5-dfsg1/lib/buffer.c:491: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(s, &(b->fetch->data[b->blocksize - b->fetch_avail]), count);
data/prayer-1.3.5-dfsg1/lib/buffer.c:503: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(s, &(b->fetch->data[b->blocksize - b->fetch_avail]),
data/prayer-1.3.5-dfsg1/lib/buffer.c:516: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(s, b->fetch->data, b->blocksize);
data/prayer-1.3.5-dfsg1/lib/buffer.c:528: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(s, b->fetch->data, count);
data/prayer-1.3.5-dfsg1/lib/buffer.h:39:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char data[1];
data/prayer-1.3.5-dfsg1/lib/cdb.c:149: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).
    fileno = open(filename, O_RDONLY);
data/prayer-1.3.5-dfsg1/lib/cdb.c:223: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 packbuf[8];
data/prayer-1.3.5-dfsg1/lib/ipaddr.c:35: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, sizeof(struct ipaddr));
data/prayer-1.3.5-dfsg1/lib/ipaddr.c:68:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[64];
data/prayer-1.3.5-dfsg1/lib/ipaddr.c:149: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).
            bits = atoi(s);
data/prayer-1.3.5-dfsg1/lib/ipaddr.c:265: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(ipaddr->addr, addr, version == 6 ? 16 : 4);
data/prayer-1.3.5-dfsg1/lib/ipaddr.c:268: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(ipaddr->addr, &ipaddr->addr[12], 4);
data/prayer-1.3.5-dfsg1/lib/ipaddr.h:11:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char addr[16];
data/prayer-1.3.5-dfsg1/lib/memblock.c:315:21:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                    strcpy(t, "(nil)");
data/prayer-1.3.5-dfsg1/lib/mydb.c:101: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).
    if ((srcfd = open(srcname, O_RDONLY)) < 0) {
data/prayer-1.3.5-dfsg1/lib/mydb.c:112: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).
    if ((dstfd = open(dstname, O_WRONLY | O_CREAT, sbuf.st_mode)) < 0) {
data/prayer-1.3.5-dfsg1/lib/mydb.h:103: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).
    int (*open)(const char *fname, struct db **ret);
data/prayer-1.3.5-dfsg1/lib/mydb_db3.c:120: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 errpfx[10]; /* needs to be static; bdb doesn't copy */
data/prayer-1.3.5-dfsg1/lib/mydb_db3.c:184: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).
  r = dbenv->open(dbenv, dbdir, flags, 0644); 
data/prayer-1.3.5-dfsg1/lib/mydb_db3.c:186: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).
  r = dbenv->open(dbenv, dbdir, NULL, flags, 0644); 
data/prayer-1.3.5-dfsg1/lib/mydb_db3.c:279:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char dstname[1024], *dp;
data/prayer-1.3.5-dfsg1/lib/mydb_db3.c:377: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).
    r = db->open(db, NULL, fname, NULL, DB_BTREE,
data/prayer-1.3.5-dfsg1/lib/mydb_db3.c:380: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).
    r = db->open(db, fname, NULL, DB_BTREE, DB_CREATE, 0664);
data/prayer-1.3.5-dfsg1/lib/mymutex_file.c:48: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).
    if ((mymutex->lockfd=open(mymutex->lockname, O_CREAT|O_WRONLY, 0660)) < 0)
data/prayer-1.3.5-dfsg1/lib/mystring.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.
    static char result[64];     /* Larger than 64-bit int */
data/prayer-1.3.5-dfsg1/lib/mystring.c:279:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(result, s, maxlen);
data/prayer-1.3.5-dfsg1/lib/mystring.c:282:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(result + maxlen - strlen("..."), "...");
data/prayer-1.3.5-dfsg1/lib/mystring.c:1224: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 decode[256] = {
data/prayer-1.3.5-dfsg1/lib/os.c:88:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char port_str[NI_MAXSERV];
data/prayer-1.3.5-dfsg1/lib/os.c:171:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char port_str[NI_MAXSERV];
data/prayer-1.3.5-dfsg1/lib/os.c:393:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[16];
data/prayer-1.3.5-dfsg1/lib/os.c:551: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 buf[2];
data/prayer-1.3.5-dfsg1/lib/os.c:568: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).
    if ((fd = open("/dev/urandom", O_RDONLY)) < 0)
data/prayer-1.3.5-dfsg1/lib/os.c:845: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).
    masterfd = open("/dev/ptmx", O_RDWR | O_NOCTTY);
data/prayer-1.3.5-dfsg1/lib/os.c:883: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).
        if ((slavefd = open(slavename, O_RDWR)) < 0)
data/prayer-1.3.5-dfsg1/lib/pool.c:345:21:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                    strcpy(d, "(nil)");
data/prayer-1.3.5-dfsg1/lib/pool.h:26:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[1];
data/prayer-1.3.5-dfsg1/lib/process.c:56:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *env[6];
data/prayer-1.3.5-dfsg1/lib/process.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.
    static char buffer[MAXLENGTH];
data/prayer-1.3.5-dfsg1/lib/raven_wls_response.c:28: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).
    int err = atoi(wls->status);
data/prayer-1.3.5-dfsg1/lib/raven_wls_response.c:85:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char key_full_path[1024];    /* key_path comes from sysadmin */          
data/prayer-1.3.5-dfsg1/lib/raven_wls_response.c:86:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char digest[21];
data/prayer-1.3.5-dfsg1/lib/raven_wls_response.c:98:29:  [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 ((key_file = (FILE *)fopen(key_full_path, "r")) == NULL)
data/prayer-1.3.5-dfsg1/lib/raven_wls_response.c:185:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(d, "%%%02x", (int)(*s));
data/prayer-1.3.5-dfsg1/lib/raven_wls_response.c:225:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *fields[13], *s;
data/prayer-1.3.5-dfsg1/lib/raven_wls_response.c:377:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[64];
data/prayer-1.3.5-dfsg1/lib/setproctitle.c:165: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.
    SETPROC_STATIC char buf[SPT_BUFSIZE];
data/prayer-1.3.5-dfsg1/lib/setproctitle.c:207: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).
        kmem = open(_PATH_KMEM, O_RDWR, 0);
data/prayer-1.3.5-dfsg1/lib/ssl.c:230: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, &expire, sizeof(time_t));
data/prayer-1.3.5-dfsg1/lib/ssl.c:247: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 idstr[SSL_MAX_SSL_SESSION_ID_LENGTH * 2 + 1];
data/prayer-1.3.5-dfsg1/lib/ssl.c:249:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(idstr + i * 2, "%02X", session_id[i]);
data/prayer-1.3.5-dfsg1/lib/ssl.c:275: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 idstr[SSL_MAX_SSL_SESSION_ID_LENGTH * 2 + 1];
data/prayer-1.3.5-dfsg1/lib/ssl.c:277:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(idstr + i * 2, "%02X", id[i]);
data/prayer-1.3.5-dfsg1/lib/ssl.c:325: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(&expire, data, sizeof(time_t));
data/prayer-1.3.5-dfsg1/lib/ssl.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 idstr[SSL_MAX_SSL_SESSION_ID_LENGTH * 2 + 1];
data/prayer-1.3.5-dfsg1/lib/ssl.c:345:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(idstr + i * 2, "%02X", id[i]);
data/prayer-1.3.5-dfsg1/lib/ssl.c:447: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).
        r = DB->open("sessions.db", &sessdb);
data/prayer-1.3.5-dfsg1/lib/ssl.c:787: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(&expire, data, sizeof(time_t));
data/prayer-1.3.5-dfsg1/lib/ssl.c:792: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 idstr[SSL_MAX_SSL_SESSION_ID_LENGTH * 2 + 1];
data/prayer-1.3.5-dfsg1/lib/ssl.c:794:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(idstr + i * 2, "%02X", id[i]);
data/prayer-1.3.5-dfsg1/lib/ssl.c:821: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 idstr[SSL_MAX_SSL_SESSION_ID_LENGTH * 2 + 1];
data/prayer-1.3.5-dfsg1/lib/ssl.c:823:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(idstr + i * 2, "%02X", id[i]);
data/prayer-1.3.5-dfsg1/lib/ssl.c:841: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).
    ret = DB->open("sessions.db", &sessdb);
data/prayer-1.3.5-dfsg1/lib/template.c:21:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[MAX_TOKEN+1];
data/prayer-1.3.5-dfsg1/lib/template.c:34: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, start, len);
data/prayer-1.3.5-dfsg1/lib/template.c:61:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[MAX_VAR_LEN+1];
data/prayer-1.3.5-dfsg1/lib/template.c:132:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[MAX_VAR_LEN+1];
data/prayer-1.3.5-dfsg1/lib/template.c:178:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(result, start, len);
data/prayer-1.3.5-dfsg1/lib/template_expand.c:25:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char src[3];
data/prayer-1.3.5-dfsg1/lib/template_expand.c:26:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char dst[5];
data/prayer-1.3.5-dfsg1/lib/template_expand.c:134:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buf[64];
data/prayer-1.3.5-dfsg1/lib/template_expand.c:284: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, s, len);
data/prayer-1.3.5-dfsg1/lib/template_expand.c:369:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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];                  /* Variables limited to 64 chars */
data/prayer-1.3.5-dfsg1/lib/template_expand.c:399: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 count = (s) ? atoi(s) : 0;
data/prayer-1.3.5-dfsg1/lib/template_parse.c:585:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((file=fopen(filename, "r")) == NULL)
data/prayer-1.3.5-dfsg1/lib/utf8.c:42: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[4];
data/prayer-1.3.5-dfsg1/lib/utf8.c:47:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char decode_base64[256] = {
data/prayer-1.3.5-dfsg1/lib/utf8.c:184: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[4];
data/prayer-1.3.5-dfsg1/lib/utf8.c:187:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char encode_base64[64] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+,";
data/prayer-1.3.5-dfsg1/lib/utf8.c:313:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[ICONV_CHUNK_SIZE];
data/prayer-1.3.5-dfsg1/lib/utf8.c:421:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(result, s, cutoff);
data/prayer-1.3.5-dfsg1/lib/utf8.c:422:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(result + cutoff, "...");
data/prayer-1.3.5-dfsg1/servers/prayer_chroot.c:29: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).
        if (((atoi(ports) == 0) || (atoi(fd) == 0)))
data/prayer-1.3.5-dfsg1/servers/prayer_chroot.c:29:37:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        if (((atoi(ports) == 0) || (atoi(fd) == 0)))
data/prayer-1.3.5-dfsg1/servers/prayer_chroot.c:33:44:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            prayer_http_port_alloc(prayer, atoi(ports), T, atoi(fd));
data/prayer-1.3.5-dfsg1/servers/prayer_chroot.c:33:60:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            prayer_http_port_alloc(prayer, atoi(ports), T, atoi(fd));
data/prayer-1.3.5-dfsg1/servers/prayer_chroot.c:35:44:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            prayer_http_port_alloc(prayer, atoi(ports), NIL, atoi(fd));
data/prayer-1.3.5-dfsg1/servers/prayer_chroot.c:35:62:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            prayer_http_port_alloc(prayer, atoi(ports), NIL, atoi(fd));
data/prayer-1.3.5-dfsg1/servers/prayer_chroot.c:117: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 ((file = fopen(name, "w")) == NIL)
data/prayer-1.3.5-dfsg1/servers/prayer_chroot.c:277: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).
        open("/dev/null", O_RDONLY);    /* Reopen stdin */
data/prayer-1.3.5-dfsg1/servers/prayer_chroot.c:278: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).
        open("/dev/null", O_WRONLY);    /* Reopen stdout */
data/prayer-1.3.5-dfsg1/servers/prayer_chroot.c:279: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).
        open("/dev/null", O_WRONLY);    /* Reopen stderr */
data/prayer-1.3.5-dfsg1/servers/prayer_login.c:20:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!(file = fopen(filename, "r")))
data/prayer-1.3.5-dfsg1/servers/prayer_main.c:29: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).
        if (((atoi(ports) == 0) || (atoi(fd) == 0)))
data/prayer-1.3.5-dfsg1/servers/prayer_main.c:29:37:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        if (((atoi(ports) == 0) || (atoi(fd) == 0)))
data/prayer-1.3.5-dfsg1/servers/prayer_main.c:33:44:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            prayer_http_port_alloc(prayer, atoi(ports), T, atoi(fd));
data/prayer-1.3.5-dfsg1/servers/prayer_main.c:33:60:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            prayer_http_port_alloc(prayer, atoi(ports), T, atoi(fd));
data/prayer-1.3.5-dfsg1/servers/prayer_main.c:35:44:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            prayer_http_port_alloc(prayer, atoi(ports), NIL, atoi(fd));
data/prayer-1.3.5-dfsg1/servers/prayer_main.c:35:62:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            prayer_http_port_alloc(prayer, atoi(ports), NIL, atoi(fd));
data/prayer-1.3.5-dfsg1/servers/prayer_main.c:117: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 ((file = fopen(name, "w")) == NIL)
data/prayer-1.3.5-dfsg1/servers/prayer_main.c:318: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).
            open("/dev/null", O_RDONLY);        /* Reopen stdin */
data/prayer-1.3.5-dfsg1/servers/prayer_main.c:319: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).
            open("/dev/null", O_WRONLY);        /* Reopen stdout */
data/prayer-1.3.5-dfsg1/servers/prayer_main.c:320: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).
            open("/dev/null", O_WRONLY);        /* Reopen stderr */
data/prayer-1.3.5-dfsg1/servers/prayer_main.c:350: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).
        open("/dev/null", O_RDONLY);    /* Reopen stdin */
data/prayer-1.3.5-dfsg1/servers/prayer_main.c:351: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).
        open("/dev/null", O_WRONLY);    /* Reopen stdout */
data/prayer-1.3.5-dfsg1/servers/prayer_main.c:352: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).
        open("/dev/null", O_WRONLY);    /* Reopen stderr */
data/prayer-1.3.5-dfsg1/servers/session_main.c:38: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 ((file = fopen(name, "w")) == NIL)
data/prayer-1.3.5-dfsg1/servers/session_server.c:109: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).
    bsr->port = atoi(portstr);
data/prayer-1.3.5-dfsg1/servers/session_server.c:110: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).
    bsr->use_ssl = (atoi(sslstr) != 0) ? T : NIL;
data/prayer-1.3.5-dfsg1/session/abook.c:55:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        abook->unnamed = atoi(line + strlen("__UNNAMED__ "));
data/prayer-1.3.5-dfsg1/session/account_msshell.c:86: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).
            port = atoi(s);
data/prayer-1.3.5-dfsg1/session/account_msshell.c:475: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).
    return (atoi(size + 1));
data/prayer-1.3.5-dfsg1/session/account_msshell.c:737: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).
            account->bused = atoi(value);
data/prayer-1.3.5-dfsg1/session/account_msshell.c:739: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).
            account->blimit = atoi(value);
data/prayer-1.3.5-dfsg1/session/account_msshell.c:741: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).
            account->iused = atoi(value);
data/prayer-1.3.5-dfsg1/session/account_msshell.c:743: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).
            account->ilimit = atoi(value);
data/prayer-1.3.5-dfsg1/session/account_support.c:107:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            account->vacation_days = atoi(component->days);
data/prayer-1.3.5-dfsg1/session/account_support.c:121:35:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        account->spam_threshold = atoi(component->threshold);
data/prayer-1.3.5-dfsg1/session/account_support.c:126:43:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            account->spam_purge_timeout = atoi(component->days);
data/prayer-1.3.5-dfsg1/session/addr.c:172:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(new, a, sizeof(ADDRESS));
data/prayer-1.3.5-dfsg1/session/checksum.c:74: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).
        file_checksum = atoi(p);
data/prayer-1.3.5-dfsg1/session/draft.c:30:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char  id[128];
data/prayer-1.3.5-dfsg1/session/draft.c:115:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmp[20*1024];  /* PINE uses scratch buffer this size */
data/prayer-1.3.5-dfsg1/session/draft.c:277: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, sizeof(struct draft));
data/prayer-1.3.5-dfsg1/session/draft.c:717:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(new->hdr, hdr, hdr_size);
data/prayer-1.3.5-dfsg1/session/draft.c:725: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->body, msg, msg_size);
data/prayer-1.3.5-dfsg1/session/draft.c:1232:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cookie[80];
data/prayer-1.3.5-dfsg1/session/draft.c:1235:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(cookie, "-%ld-%ld-%ld=:%ld",
data/prayer-1.3.5-dfsg1/session/draft.c:1502:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char date[64];
data/prayer-1.3.5-dfsg1/session/draft.c:1724: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).
    uidvalidity = atoi(s);
data/prayer-1.3.5-dfsg1/session/draft.c:1738: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).
    uid = atoi(s);
data/prayer-1.3.5-dfsg1/session/folderlist.c:612:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[64];
data/prayer-1.3.5-dfsg1/session/folderlist.c:618:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf, "%lu.%lu", whole, fraction);
data/prayer-1.3.5-dfsg1/session/folderlist.c:620:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf, "%lu.0%lu", whole, fraction);
data/prayer-1.3.5-dfsg1/session/html_secure_tidy.c:30:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmp[7];
data/prayer-1.3.5-dfsg1/session/lookup.c:46: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).
            result->ldap_port = atoi(s);
data/prayer-1.3.5-dfsg1/session/mc.c:17:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char result[64];
data/prayer-1.3.5-dfsg1/session/mc.c:18:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char *date_month[12] = {
data/prayer-1.3.5-dfsg1/session/mc.c:46:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char result[64];
data/prayer-1.3.5-dfsg1/session/mc.c:47:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char *date_month[12] = {
data/prayer-1.3.5-dfsg1/session/ml.c:419: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(&spare, message, sizeof(STRING));
data/prayer-1.3.5-dfsg1/session/ml.c:641: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(ml_status_val, status, sizeof(MAILSTATUS));
data/prayer-1.3.5-dfsg1/session/msgmap.c:870:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(p, "%lu", current);
data/prayer-1.3.5-dfsg1/session/msgmap.c:1059:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(p, "%lu", current);
data/prayer-1.3.5-dfsg1/session/options.c:247: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 date[64];
data/prayer-1.3.5-dfsg1/session/prefs.c:330: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).
            numvalue = atoi(value);
data/prayer-1.3.5-dfsg1/session/prefs.c:393: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).
            prefs->large_cols = atoi(value);
data/prayer-1.3.5-dfsg1/session/prefs.c:395: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).
            prefs->large_rows = atoi(value);
data/prayer-1.3.5-dfsg1/session/prefs.c:397: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).
            prefs->line_wrap_len = atoi(value);
data/prayer-1.3.5-dfsg1/session/prefs.c:409: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).
            numvalue = atoi(value);
data/prayer-1.3.5-dfsg1/session/prefs.c:442: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).
            prefs->small_cols = atoi(value);
data/prayer-1.3.5-dfsg1/session/prefs.c:444: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).
            prefs->small_rows = atoi(value);
data/prayer-1.3.5-dfsg1/session/role.c:130:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[6];
data/prayer-1.3.5-dfsg1/session/session.c:258: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 s[3];
data/prayer-1.3.5-dfsg1/session/session.c:259: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 d[5];
data/prayer-1.3.5-dfsg1/session/session.c:945: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).
        int fd = open(name, O_CREAT | O_TRUNC | O_APPEND | O_WRONLY,
data/prayer-1.3.5-dfsg1/session/session.c:994: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 s[4];
data/prayer-1.3.5-dfsg1/session/sieve.c:482: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).
            port = atoi(s);
data/prayer-1.3.5-dfsg1/session/stream.c:71:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char seq[64];
data/prayer-1.3.5-dfsg1/session/stream.c:76:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(seq, "1:%lu", stream->nmsgs);
data/prayer-1.3.5-dfsg1/session/wrap.c:479: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(t, s, bytes);
data/prayer-1.3.5-dfsg1/session/wrap.c:502: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(t, s, bytes);
data/prayer-1.3.5-dfsg1/session/wrap.c:541:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *color[5];
data/prayer-1.3.5-dfsg1/shared/config.c:44:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char           *dn, hname[MAX_ADDRESS+1];
data/prayer-1.3.5-dfsg1/shared/config.c:1155: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).
    *result = (multiple * atoi(text));
data/prayer-1.3.5-dfsg1/shared/config.c:1220: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).
    *result = (multiple * atoi(text));
data/prayer-1.3.5-dfsg1/shared/config.c:1994: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 ((file = fopen(filename, "r")) == NULL) {
data/prayer-1.3.5-dfsg1/shared/config.c:2238:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char hostname[MAX_ADDRESS+1], domainname[MAX_ADDRESS+1];
data/prayer-1.3.5-dfsg1/shared/config.c:2501:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[CONFIG_CWD_MAXLEN];
data/prayer-1.3.5-dfsg1/shared/gzip.c:29:28:  [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).
#define F_OPEN(name, mode) fopen((name), (mode))
data/prayer-1.3.5-dfsg1/shared/log.c:99: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 ((log->fd = open(log->name, open_flags, open_perms)) < 0) {
data/prayer-1.3.5-dfsg1/shared/log.c:158: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).
         open(log->name, O_APPEND | O_WRONLY | O_CREAT, open_perms)) < 0) {
data/prayer-1.3.5-dfsg1/shared/log.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.
    static char *date_month[12] = {
data/prayer-1.3.5-dfsg1/shared/log.c:221:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buffer, "[%lu:%lu] ",
data/prayer-1.3.5-dfsg1/shared/log.c:224:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buffer, "[%lu] ", (unsigned long) getpid());
data/prayer-1.3.5-dfsg1/shared/log.c:345:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if ((fd = open(name, open_flags, open_perms)) >= 0) {
data/prayer-1.3.5-dfsg1/shared/log.c:390:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char log_tmp[LOG_TMP_SIZE + 1];
data/prayer-1.3.5-dfsg1/shared/request.c:438:13:  [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(s, ", ");
data/prayer-1.3.5-dfsg1/shared/request.c:547: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).
        if (((len = atoi(value)) > config->http_max_body_size)) {
data/prayer-1.3.5-dfsg1/shared/request.c:560: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).
        request->body_size = atoi(value);
data/prayer-1.3.5-dfsg1/shared/request.c:1124:13:  [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(s, ", ");
data/prayer-1.3.5-dfsg1/shared/response.c:141:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char *date_month[12] = {
data/prayer-1.3.5-dfsg1/shared/response.c:206:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char *date_day[7] = {
data/prayer-1.3.5-dfsg1/shared/response.c:209:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char *date_month[12] = {
data/prayer-1.3.5-dfsg1/shared/response.c:670: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 ((file = fopen(s, "r")) == NIL) {
data/prayer-1.3.5-dfsg1/shared/response.c:989:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((file=fopen("last-response.html", "w")) == NULL)
data/prayer-1.3.5-dfsg1/shared/user_agent.c:106: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((void *) result, (void *) src, sizeof(struct user_agent));
data/prayer-1.3.5-dfsg1/shared/user_agent.c:120:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((void *) dest, (void *) src, sizeof(struct user_agent));
data/prayer-1.3.5-dfsg1/templates/src/template_compile_main.c:40:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((file=fopen(target, "w")) == NULL) {
data/prayer-1.3.5-dfsg1/templates/src/template_expand_main.c:104:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((file=fopen(target, "w")) == NULL) {
data/prayer-1.3.5-dfsg1/utils/prayer-sem-prune.c:58: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).
        sem_id = atoi(argv[i]);
data/prayer-1.3.5-dfsg1/accountd/accountd.c:267:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(0077);
data/prayer-1.3.5-dfsg1/accountd/accountd.c:277: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).
                            "--config-file=", strlen("--config-file=")))
data/prayer-1.3.5-dfsg1/accountd/accountd.c:278: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).
            config_filename = strdup(argv[i] + strlen("--config-file="));
data/prayer-1.3.5-dfsg1/accountd/authenticate.c:24: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).
    int len = strlen(b);
data/prayer-1.3.5-dfsg1/accountd/authenticate.c:42:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!strncmp(s, "https://", strlen("https://")))
data/prayer-1.3.5-dfsg1/accountd/authenticate.c:43: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).
        s += strlen("https://");
data/prayer-1.3.5-dfsg1/accountd/authenticate.c:44: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).
    else if (!strncmp(s, "http://", strlen("http://")))
data/prayer-1.3.5-dfsg1/accountd/authenticate.c:45: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).
        s += strlen("http://");
data/prayer-1.3.5-dfsg1/accountd/authenticate.c:316: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 (config->raven_enable && (strlen(password) > 256)) {
data/prayer-1.3.5-dfsg1/accountd/checksum.c:63: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).
    checklen = strlen(checkstring);
data/prayer-1.3.5-dfsg1/accountd/checksum.c:71: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).
                p = buffer + strlen(checkstring);
data/prayer-1.3.5-dfsg1/accountd/config.c:730:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(fd, buffer, size) < size) {
data/prayer-1.3.5-dfsg1/accountd/file.c:88:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = getc(file)) != EOF)
data/prayer-1.3.5-dfsg1/accountd/file.c:132:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (((len = strlen(size)) < 2) ||
data/prayer-1.3.5-dfsg1/accountd/filter.c:237:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        unsigned long len = strlen(buffer);
data/prayer-1.3.5-dfsg1/accountd/filter.c:613: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(string);
data/prayer-1.3.5-dfsg1/accountd/mail.c:24: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).
    *sp += strlen(s);
data/prayer-1.3.5-dfsg1/accountd/mail.c:52: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).
    buffer[strlen(buffer) - 1] = '\0';  /* Remove trailing \n */
data/prayer-1.3.5-dfsg1/accountd/mail.c:55:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!strncasecmp(buffer, "# Exim filter ", strlen("# Exim filter ")))
data/prayer-1.3.5-dfsg1/accountd/mail.c:59:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = getc(file)) != EOF)
data/prayer-1.3.5-dfsg1/accountd/mail.c:93:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!strncmp(s, "vacation-", strlen("vacation-"))) {
data/prayer-1.3.5-dfsg1/accountd/mail.c:181:21:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while ((c = getc(file)) != EOF)
data/prayer-1.3.5-dfsg1/accountd/mail.c:246:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (((len = strlen(size)) < 2) ||
data/prayer-1.3.5-dfsg1/cmd/cmd.c:130:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((len = strlen(cmd[0].cmd)) > maxlen)
data/prayer-1.3.5-dfsg1/cmd/cmd_abook_list.c:24: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).
        if (strncmp(key, "remove_", strlen("remove_")) != 0)
data/prayer-1.3.5-dfsg1/cmd/cmd_abook_list.c:27: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).
        tmp = pool_strdup(pool, key + strlen("remove_"));
data/prayer-1.3.5-dfsg1/cmd/cmd_abook_list.c:59:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (!strncmp(key, "to_", strlen("to_"))) {
data/prayer-1.3.5-dfsg1/cmd/cmd_abook_list.c:60: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).
            num = atoi(key + strlen("to_")) - 1;
data/prayer-1.3.5-dfsg1/cmd/cmd_abook_list.c:65: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).
        } else if (!strncmp(key, "cc_", strlen("cc_"))) {
data/prayer-1.3.5-dfsg1/cmd/cmd_abook_list.c:66: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).
            num = atoi(key + strlen("cc_")) - 1;
data/prayer-1.3.5-dfsg1/cmd/cmd_abook_list.c:71: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).
        } else if (!strncmp(key, "bcc_", strlen("bcc_"))) {
data/prayer-1.3.5-dfsg1/cmd/cmd_abook_list.c:72: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).
            num = atoi(key + strlen("bcc_")) - 1;
data/prayer-1.3.5-dfsg1/cmd/cmd_abook_lookup.c:179:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (!strncmp(key, "to_", strlen("to_"))) {
data/prayer-1.3.5-dfsg1/cmd/cmd_abook_lookup.c:180:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            key += strlen("to_");
data/prayer-1.3.5-dfsg1/cmd/cmd_abook_lookup.c:182: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).
        } else if (!strncmp(key, "cc_", strlen("cc_"))) {
data/prayer-1.3.5-dfsg1/cmd/cmd_abook_lookup.c:183:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            key += strlen("cc_");
data/prayer-1.3.5-dfsg1/cmd/cmd_abook_lookup.c:185: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).
        } else if (!strncmp(key, "bcc_", strlen("bcc_"))) {
data/prayer-1.3.5-dfsg1/cmd/cmd_abook_lookup.c:186:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            key += strlen("bcc_");
data/prayer-1.3.5-dfsg1/cmd/cmd_abook_xfer.c:107:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        strlen("First Name\tLast Name\t"))) {
data/prayer-1.3.5-dfsg1/cmd/cmd_attachments.c:97:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (!strncasecmp(s, "filename=\"", strlen("filename=\""))) {
data/prayer-1.3.5-dfsg1/cmd/cmd_attachments.c:98: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).
                name = s = s + strlen("filename=\"");
data/prayer-1.3.5-dfsg1/cmd/cmd_attachments.c:104: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).
            } else if (!strncasecmp(s, "filename=", strlen("filename="))) {
data/prayer-1.3.5-dfsg1/cmd/cmd_attachments.c:105: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).
                name = s + strlen("filename=");
data/prayer-1.3.5-dfsg1/cmd/cmd_compose.c:103: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).
            rfc1522_decode(pool_alloc(request->pool, strlen(string)),
data/prayer-1.3.5-dfsg1/cmd/cmd_compose.c:104:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                           strlen(string), string, NIL);
data/prayer-1.3.5-dfsg1/cmd/cmd_compose.c:123:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                rfc1522_decode(pool_alloc(request->pool, strlen(string)),
data/prayer-1.3.5-dfsg1/cmd/cmd_compose.c:124:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                               strlen(string), string, NIL);
data/prayer-1.3.5-dfsg1/cmd/cmd_dictionary.c:23:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((len = strlen(li->name)) > max)
data/prayer-1.3.5-dfsg1/cmd/cmd_download_xfer.c:128:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (!strncmp(s, "From ", strlen("From ")))
data/prayer-1.3.5-dfsg1/cmd/cmd_download_xfer.c:172:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (!strncmp(s, "From ", strlen("From ")))
data/prayer-1.3.5-dfsg1/cmd/cmd_exit.c:26: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 ((config->raven_enable) && (strlen(session->password) > 256)) {
data/prayer-1.3.5-dfsg1/cmd/cmd_forward1.c:13: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).
    unsigned long len = strlen(s) + 20;
data/prayer-1.3.5-dfsg1/cmd/cmd_forward1.c:24: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).
    unsigned long len = strlen(s) + 20;
data/prayer-1.3.5-dfsg1/cmd/cmd_forward1.c:139: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).
    sl->text.size = strlen(*l);
data/prayer-1.3.5-dfsg1/cmd/cmd_forward1.c:274: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).
        (!strncasecmp(decode_msg, "<html>", strlen("<html>")) &&
data/prayer-1.3.5-dfsg1/cmd/cmd_forward1.c:402:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (!strncasecmp(s, "Fwd: ", strlen("Fwd: ")))
data/prayer-1.3.5-dfsg1/cmd/cmd_init.c:91:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        (strlen(session->password) > 256)) {
data/prayer-1.3.5-dfsg1/cmd/cmd_list.c:245: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).
    string = (char *) rfc1522_decode(pool_alloc(pool, strlen(string)),
data/prayer-1.3.5-dfsg1/cmd/cmd_list.c:246:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                     strlen(string), string, NIL);
data/prayer-1.3.5-dfsg1/cmd/cmd_list.c:271: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).
            rfc1522_decode(pool_alloc(pool, strlen(string)),
data/prayer-1.3.5-dfsg1/cmd/cmd_list.c:272:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                           strlen(string), string, NIL);
data/prayer-1.3.5-dfsg1/cmd/cmd_prefs.c:335: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).
        if (!strncmp(s, "reverse-", strlen("reverse-"))) {
data/prayer-1.3.5-dfsg1/cmd/cmd_prefs.c:337: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).
            s += strlen("reverse-");
data/prayer-1.3.5-dfsg1/cmd/cmd_prefs.c:365: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).
        if (!strncmp(s, "reverse-", strlen("reverse-"))) {
data/prayer-1.3.5-dfsg1/cmd/cmd_prefs.c:367: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).
            s += strlen("reverse-");
data/prayer-1.3.5-dfsg1/cmd/cmd_prefs.c:512: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).
                         session->username, strlen(session->username),
data/prayer-1.3.5-dfsg1/cmd/cmd_rename_item.c:52: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(newname, tmp, strlen(tmp)) != 0) {
data/prayer-1.3.5-dfsg1/cmd/cmd_reply.c:104: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).
        rfc1522_decode(pool_alloc(pool, strlen(string)),
data/prayer-1.3.5-dfsg1/cmd/cmd_reply.c:105:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                       strlen(string), string, NIL);
data/prayer-1.3.5-dfsg1/cmd/cmd_reply.c:110: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).
        rfc1522_decode(pool_alloc(pool, strlen(string)),
data/prayer-1.3.5-dfsg1/cmd/cmd_reply.c:111:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                       strlen(string), string, NIL);
data/prayer-1.3.5-dfsg1/cmd/cmd_reply.c:117: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).
            rfc1522_decode(pool_alloc(pool, strlen(string)),
data/prayer-1.3.5-dfsg1/cmd/cmd_reply.c:118:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                           strlen(string), string, NIL);
data/prayer-1.3.5-dfsg1/cmd/cmd_reply2.c:28: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).
    unsigned long len = strlen(s) + 20;
data/prayer-1.3.5-dfsg1/cmd/cmd_reply2.c:140: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).
        (!strncasecmp(decode_msg, "<html>", strlen("<html>")) &&
data/prayer-1.3.5-dfsg1/cmd/cmd_reply2.c:278: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).
            unsigned long len = strlen(sender->personal) + 20;
data/prayer-1.3.5-dfsg1/cmd/cmd_reply2.c:320: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).
        if (!strncasecmp(s, "Re: ", strlen("Re: ")))
data/prayer-1.3.5-dfsg1/cmd/cmd_restart.c:19:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (config->raven_enable && (strlen(session->password) > 256))
data/prayer-1.3.5-dfsg1/cmd/cmd_search.c:83: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).
        pgm->from->text.size = strlen(value);
data/prayer-1.3.5-dfsg1/cmd/cmd_search.c:88: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).
        pgm->cc->text.size = strlen(value);
data/prayer-1.3.5-dfsg1/cmd/cmd_search.c:93:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        pgm->to->text.size = strlen(value);
data/prayer-1.3.5-dfsg1/cmd/cmd_search.c:98: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).
        pgm->subject->text.size = strlen(value);
data/prayer-1.3.5-dfsg1/cmd/cmd_search.c:103: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).
        pgm->text->text.size = strlen(value);
data/prayer-1.3.5-dfsg1/cmd/cmd_search.c:109: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).
        pgm->or->first->to->text.size = strlen(value);
data/prayer-1.3.5-dfsg1/cmd/cmd_search.c:112: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).
        pgm->or->second->cc->text.size = strlen(value);
data/prayer-1.3.5-dfsg1/cmd/cmd_search.c:119: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).
        pgm->or->first->to->text.size = strlen(value);
data/prayer-1.3.5-dfsg1/cmd/cmd_search.c:125: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).
        pgm->or->second->or->first->cc->text.size = strlen(value);
data/prayer-1.3.5-dfsg1/cmd/cmd_search.c:129:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        pgm->or->second->or->second->from->text.size = strlen(value);
data/prayer-1.3.5-dfsg1/cmd/cmd_send.c:280: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).
        if ((offset == 0) && !strncasecmp(s, "Bcc:", strlen("Bcc:"))) {
data/prayer-1.3.5-dfsg1/cmd/cmd_sieve.c:40: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(s, "line ", strlen("line ")) != 0) ||
data/prayer-1.3.5-dfsg1/cmd/cmd_sieve.c:41: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).
        ((lineno=atoi(s+strlen("line "))) == 0)) {
data/prayer-1.3.5-dfsg1/cmd/cmd_sieve.c:50: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).
    s += strlen("line ");
data/prayer-1.3.5-dfsg1/cmd/cmd_sieve.c:78: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 (!strncmp(errline, "line ", strlen("line ")) &&
data/prayer-1.3.5-dfsg1/cmd/cmd_sieve.c:79: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).
            ((err_lineno = atoi(errline + strlen("line "))) > 0))
data/prayer-1.3.5-dfsg1/cmd/cmd_sieve.c:103: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 (!strncmp(errline, "line ", strlen("line ")) &&
data/prayer-1.3.5-dfsg1/cmd/cmd_sieve.c:104: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).
                    ((err_lineno = atoi(errline + strlen("line "))) > lineno))
data/prayer-1.3.5-dfsg1/cmd/cmd_upload_select.c:68:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (!strncasecmp(s, "filename=\"", strlen("filename=\""))) {
data/prayer-1.3.5-dfsg1/cmd/cmd_upload_select.c:69: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).
                name = s = s + strlen("filename=\"");
data/prayer-1.3.5-dfsg1/lib/cdb.c:103:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            r = read(fd, buf, len);
data/prayer-1.3.5-dfsg1/lib/iostream.c:316:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            len = read(x->fd, x->ibuffer, x->blocksize);
data/prayer-1.3.5-dfsg1/lib/memblock.c:160: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).
    memblock_resize(m, strlen(s) + 1);
data/prayer-1.3.5-dfsg1/lib/memblock.c:177: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).
    memblock_resize(m, strlen(s) + 1);
data/prayer-1.3.5-dfsg1/lib/memblock.c:192: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).
    memblock_resize(m, strlen(s) + 1);
data/prayer-1.3.5-dfsg1/lib/memblock.c:256: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 += strlen(s);
data/prayer-1.3.5-dfsg1/lib/memblock.c:258: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).
                    size += strlen("(nil)");
data/prayer-1.3.5-dfsg1/lib/memblock.c:316: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).
                    t += strlen("(nil)");
data/prayer-1.3.5-dfsg1/lib/mydb.c:128:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = read(srcfd, buf, bufsize);
data/prayer-1.3.5-dfsg1/lib/mydb_db3.c:304: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).
    dp = dstname + strlen(dstname);
data/prayer-1.3.5-dfsg1/lib/mystring.c:268: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 (maxlen < (strlen("...") + 1))
data/prayer-1.3.5-dfsg1/lib/mystring.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).
    if (strlen(s) < maxlen)
data/prayer-1.3.5-dfsg1/lib/mystring.c:282: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).
    strcpy(result + maxlen - strlen("..."), "...");
data/prayer-1.3.5-dfsg1/lib/mystring.c:309: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(string);
data/prayer-1.3.5-dfsg1/lib/mystring.c:446: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).
    unsigned long len = strlen(name);
data/prayer-1.3.5-dfsg1/lib/mystring.c:724: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).
    result = pool_alloc(pool, strlen(s) + (2 * specials) + 1);
data/prayer-1.3.5-dfsg1/lib/mystring.c:755: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).
            s = pool_alloc(pool, strlen(dir) + 1 + strlen(file) + 1);
data/prayer-1.3.5-dfsg1/lib/mystring.c:755: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).
            s = pool_alloc(pool, strlen(dir) + 1 + strlen(file) + 1);
data/prayer-1.3.5-dfsg1/lib/mystring.c:757: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).
            t = s + strlen(s);
data/prayer-1.3.5-dfsg1/lib/mystring.c:770: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).
    result = pool_alloc(pool, strlen(s) + (2 * specials) + 1);
data/prayer-1.3.5-dfsg1/lib/mystring.c:908: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).
    result = pool_alloc(pool, strlen(arg) + (2 * specials) + 1);
data/prayer-1.3.5-dfsg1/lib/os.c:74:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(serv_addr.sun_path, name, sizeof(serv_addr.sun_path)-1);
data/prayer-1.3.5-dfsg1/lib/os.c:124:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(serv_addr.sun_path, name, sizeof(serv_addr.sun_path)-1);
data/prayer-1.3.5-dfsg1/lib/os.c:125: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).
    servlen = strlen(serv_addr.sun_path) + sizeof(serv_addr.sun_family);
data/prayer-1.3.5-dfsg1/lib/os.c:528:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        rc = read(fd, buf, count);
data/prayer-1.3.5-dfsg1/lib/pool.c:177: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).
    s = pool_alloc(p, strlen(value) + 1);
data/prayer-1.3.5-dfsg1/lib/pool.c:200: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).
    s = pool_alloc(p, strlen(s1) + strlen(s2) + 1);
data/prayer-1.3.5-dfsg1/lib/pool.c:200: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).
    s = pool_alloc(p, strlen(s1) + strlen(s2) + 1);
data/prayer-1.3.5-dfsg1/lib/pool.c:225: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).
    s = pool_alloc(p, strlen(s1) + strlen(s2) + strlen(s3) + 1);
data/prayer-1.3.5-dfsg1/lib/pool.c:225: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).
    s = pool_alloc(p, strlen(s1) + strlen(s2) + strlen(s3) + 1);
data/prayer-1.3.5-dfsg1/lib/pool.c:225:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    s = pool_alloc(p, strlen(s1) + strlen(s2) + strlen(s3) + 1);
data/prayer-1.3.5-dfsg1/lib/pool.c:290: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).
                     count += strlen(s);
data/prayer-1.3.5-dfsg1/lib/pool.c:292: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).
                    count += strlen("(nil)");
data/prayer-1.3.5-dfsg1/lib/pool.c:346: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).
                    d += strlen("(nil)");
data/prayer-1.3.5-dfsg1/lib/pool.c:423: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).
        len += strlen(*p) + 1;
data/prayer-1.3.5-dfsg1/lib/pool.c:429: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).
        s += strlen(s);
data/prayer-1.3.5-dfsg1/lib/process.c:38:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((result = malloc(strlen(key) + strlen(value) + 2)) == NIL)
data/prayer-1.3.5-dfsg1/lib/process.c:38: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 ((result = malloc(strlen(key) + strlen(value) + 2)) == NIL)
data/prayer-1.3.5-dfsg1/lib/process.c:193: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).
    unsigned long len = strlen(string);
data/prayer-1.3.5-dfsg1/lib/process.c:214: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).
            if (warning && !strncmp(buffer, warning, strlen(warning))) {
data/prayer-1.3.5-dfsg1/lib/raven_wls_response.c:65:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for (i = 0; i < strlen(d); i++) {
data/prayer-1.3.5-dfsg1/lib/raven_wls_response.c:72: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(res);
data/prayer-1.3.5-dfsg1/lib/raven_wls_response.c:73: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).
    string_base64_decode((unsigned char *)res, strlen(res), &len);
data/prayer-1.3.5-dfsg1/lib/raven_wls_response.c:96: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).
    SHA1((const unsigned char *)data, strlen(data), (unsigned char *)digest);
data/prayer-1.3.5-dfsg1/lib/raven_wls_response.c:152: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).
        t = s + strlen(s);
data/prayer-1.3.5-dfsg1/lib/raven_wls_response.c:326:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!(wls && wls->issue && (strlen(wls->issue) == 16)))
data/prayer-1.3.5-dfsg1/lib/setproctitle.c:119: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).
        envpsize += strlen(envp[i]) + 1;
data/prayer-1.3.5-dfsg1/lib/setproctitle.c:137: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).
            LastArgv = argv[i] + strlen(argv[i]);
data/prayer-1.3.5-dfsg1/lib/setproctitle.c:143: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).
            LastArgv = envp[i] + strlen(envp[i]);
data/prayer-1.3.5-dfsg1/lib/setproctitle.c:181: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).
    p += strlen(p);
data/prayer-1.3.5-dfsg1/lib/setproctitle.c:190: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).
    i = strlen(buf);
data/prayer-1.3.5-dfsg1/lib/ssl.c:551: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).
    SSL_set_session_id_context(ssl, sid_ctx, strlen((char *) sid_ctx));
data/prayer-1.3.5-dfsg1/lib/ssl.c:659:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                               strlen((char *) sid_ctx));
data/prayer-1.3.5-dfsg1/lib/template_expand.c:131: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).
        int len = strlen(f->var_prefix);
data/prayer-1.3.5-dfsg1/lib/template_parse.c:392: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 (((len=strlen(name)) > 1) && name[len-1] == ',') {
data/prayer-1.3.5-dfsg1/lib/utf8.c:407: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 (maxlen < (strlen("...") + 1))
data/prayer-1.3.5-dfsg1/lib/utf8.c:412:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (L == maxlen - strlen("...")) cutoff = i;
data/prayer-1.3.5-dfsg1/servers/prayer_chroot.c:97: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).
                (argv[i], "--config-file=", strlen("--config-file=")))
data/prayer-1.3.5-dfsg1/servers/prayer_chroot.c:197: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).
                          "--config-file=", strlen("--config-file="))) {
data/prayer-1.3.5-dfsg1/servers/prayer_chroot.c:198: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).
            config_filename = strdup(argv[i] + strlen("--config-file="));
data/prayer-1.3.5-dfsg1/servers/prayer_chroot.c:201: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 (!strncmp(argv[i], "--ports=", strlen("--ports="))) {
data/prayer-1.3.5-dfsg1/servers/prayer_chroot.c:202: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).
            ports = argv[i] + strlen("--ports=");
data/prayer-1.3.5-dfsg1/servers/prayer_login.c:23:17:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = fgetc(file)) != EOF) {
data/prayer-1.3.5-dfsg1/servers/prayer_login.c:386: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).
    if ((config->raven_enable) && (password) && (strlen(password) > 256)) {
data/prayer-1.3.5-dfsg1/servers/prayer_main.c:97: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).
                (argv[i], "--config-file=", strlen("--config-file=")))
data/prayer-1.3.5-dfsg1/servers/prayer_main.c:197: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).
                          "--config-file=", strlen("--config-file="))) {
data/prayer-1.3.5-dfsg1/servers/prayer_main.c:198: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).
            config_filename = strdup(argv[i] + strlen("--config-file="));
data/prayer-1.3.5-dfsg1/servers/prayer_main.c:201: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 (!strncmp(argv[i], "--ports=", strlen("--ports="))) {
data/prayer-1.3.5-dfsg1/servers/prayer_main.c:202: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).
            ports = argv[i] + strlen("--ports=");
data/prayer-1.3.5-dfsg1/servers/prayer_server.c:61:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!(s && s[0] && (strlen(s) < 32)))
data/prayer-1.3.5-dfsg1/servers/session_main.c:107: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).
                          "--config-file=", strlen("--config-file="))) {
data/prayer-1.3.5-dfsg1/servers/session_main.c:108: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).
            config_filename = strdup(argv[i] + strlen("--config-file="));
data/prayer-1.3.5-dfsg1/servers/session_streams.c:670: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).
    INIT(&ms, mail_string, data, size = strlen(data));
data/prayer-1.3.5-dfsg1/servers/session_streams.c:771: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).
              (strlen(name) >= strlen(prefs_folder_name)) &&
data/prayer-1.3.5-dfsg1/servers/session_streams.c:771:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              (strlen(name) >= strlen(prefs_folder_name)) &&
data/prayer-1.3.5-dfsg1/servers/session_streams.c:772: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).
              (!strcmp(name + strlen(name) - strlen(prefs_folder_name),
data/prayer-1.3.5-dfsg1/servers/session_streams.c:772: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).
              (!strcmp(name + strlen(name) - strlen(prefs_folder_name),
data/prayer-1.3.5-dfsg1/session/abook.c:54: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 (!strncmp(line, "__UNNAMED__ ", strlen("__UNNAMED__ "))) {
data/prayer-1.3.5-dfsg1/session/abook.c:55: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).
        abook->unnamed = atoi(line + strlen("__UNNAMED__ "));
data/prayer-1.3.5-dfsg1/session/abook.c:298: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 (!strncasecmp(test, value, strlen(value)))
data/prayer-1.3.5-dfsg1/session/abook.c:303: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).
            (test + strlen(test) - strlen(value), value, strlen(value)))
data/prayer-1.3.5-dfsg1/session/abook.c:303: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).
            (test + strlen(test) - strlen(value), value, strlen(value)))
data/prayer-1.3.5-dfsg1/session/abook.c:303:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            (test + strlen(test) - strlen(value), value, strlen(value)))
data/prayer-1.3.5-dfsg1/session/abook.c:309: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 (!strncasecmp(s, value, strlen(value))) {
data/prayer-1.3.5-dfsg1/session/abook.c:594:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            (cld->cdb_map, a->mailbox, strlen(a->mailbox),
data/prayer-1.3.5-dfsg1/session/abook.c:688:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                 strlen(a->mailbox), &v2) && v2 && v2[0]
data/prayer-1.3.5-dfsg1/session/abook.c:902: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).
        (t, "# Prayer addressbook", strlen("# Prayer addressbook")))
data/prayer-1.3.5-dfsg1/session/abook.c:968: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).
            unsigned long len = strlen(email);
data/prayer-1.3.5-dfsg1/session/abook.c:1135:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(s);
data/prayer-1.3.5-dfsg1/session/abook.c:1159:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((*offsetp + strlen(s)) < 76) {
data/prayer-1.3.5-dfsg1/session/account_msshell.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).
    if (((len = strlen(size)) < 2) ||
data/prayer-1.3.5-dfsg1/session/account_msshell.c:904: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).
    s      = pool_printf(pool, "{%lu}", strlen(text));
data/prayer-1.3.5-dfsg1/session/account_msshell.c:929: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).
                               pool_printf(pool, "{%lu}", strlen(file)));
data/prayer-1.3.5-dfsg1/session/account_msshell.c:960: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).
                               pool_printf(pool, "{%lu}", strlen(file)));
data/prayer-1.3.5-dfsg1/session/account_msshell.c:1067: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).
                               pool_printf(pool, "{%lu}", strlen(text)));
data/prayer-1.3.5-dfsg1/session/addr.c:30: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).
	cnt   += 2 * (a->personal  ? (strlen(a->personal)+1)  : 0);
data/prayer-1.3.5-dfsg1/session/addr.c:31: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).
	cnt   += 2 * (a->mailbox  ? (strlen(a->mailbox)+1)    : 0);
data/prayer-1.3.5-dfsg1/session/addr.c:32: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).
	cnt   += (a->adl      ? strlen(a->adl)      : 0);
data/prayer-1.3.5-dfsg1/session/addr.c:33: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).
	cnt   += (a->host     ? strlen(a->host)     : 0);
data/prayer-1.3.5-dfsg1/session/checksum.c:51:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    unsigned long checklen = strlen(checkstring);
data/prayer-1.3.5-dfsg1/session/checksum.c:69: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).
        p = line + strlen(checkstring);
data/prayer-1.3.5-dfsg1/session/dictionary.c:55: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 ((offset + strlen(li->name)) >= 76) {
data/prayer-1.3.5-dfsg1/session/dictionary.c:60: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).
            offset = strlen(li->name);
data/prayer-1.3.5-dfsg1/session/dictionary.c:66: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).
            offset += strlen(li->name);
data/prayer-1.3.5-dfsg1/session/display.c:76: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).
            unsigned long len = strlen(a->personal) + 20;
data/prayer-1.3.5-dfsg1/session/display.c:123: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).
            rfc1522_decode(pool_alloc(tvals->pool, strlen(subject)),
data/prayer-1.3.5-dfsg1/session/display.c:124:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                           strlen(subject), subject, NIL);
data/prayer-1.3.5-dfsg1/session/display.c:207: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).
        return(utf8_from_string(pool, charset, value, strlen(value)));
data/prayer-1.3.5-dfsg1/session/display.c:466: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 (!strncasecmp(s, "<html>", strlen("<html>")))
data/prayer-1.3.5-dfsg1/session/display.c:469: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).
                 (s, "<!doctype html ", strlen("<!doctype html ")))
data/prayer-1.3.5-dfsg1/session/display.c:511: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).
    sl->text.size = strlen(*l);
data/prayer-1.3.5-dfsg1/session/draft.c:22: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).
    sl->text.size = strlen(*l);
data/prayer-1.3.5-dfsg1/session/draft.c:158: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).
    int col = strlen("Subject: ")+1;
data/prayer-1.3.5-dfsg1/session/draft.c:1035: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).
    offset = strlen(hdr) + strlen(": ");
data/prayer-1.3.5-dfsg1/session/draft.c:1035: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).
    offset = strlen(hdr) + strlen(": ");
data/prayer-1.3.5-dfsg1/session/draft.c:1040: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).
        int len = strlen(s);
data/prayer-1.3.5-dfsg1/session/draft.c:1302:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    strlen(name) > 78) {
data/prayer-1.3.5-dfsg1/session/draft.c:1527: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).
                         session->username, strlen(session->username),
data/prayer-1.3.5-dfsg1/session/draft.c:1713:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strncmp(s, "(2 > )(1 ", strlen("(2 > )(1 ")) != 0)
data/prayer-1.3.5-dfsg1/session/draft.c:1716: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).
    s += strlen("(2 > )(1 ");
data/prayer-1.3.5-dfsg1/session/draft.c:1756: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(s, "/home", strlen("/home"))) {
data/prayer-1.3.5-dfsg1/session/draft.c:1761: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 (strncmp(s, session->username, strlen(session->username)) != 0)
data/prayer-1.3.5-dfsg1/session/draft.c:1763: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).
        s += strlen(session->username);
data/prayer-1.3.5-dfsg1/session/draft.c:1801: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(fcc, IMAPURL_PREFIX, strlen(IMAPURL_PREFIX)) &&
data/prayer-1.3.5-dfsg1/session/draft.c:1802: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).
        (t=strchr(fcc+strlen(IMAPURL_PREFIX)+1, '/')))
data/prayer-1.3.5-dfsg1/session/draft.c:1873: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).
            void *t = pool_alloc(d->pool, strlen(s));
data/prayer-1.3.5-dfsg1/session/draft.c:1876: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).
                = (char *) rfc1522_decode(t, strlen(s), s, NIL);
data/prayer-1.3.5-dfsg1/session/draft.c:1889:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        d->to = (char *) rfc1522_decode(pool_alloc(pool, strlen(d->to)),
data/prayer-1.3.5-dfsg1/session/draft.c:1890: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).
                                        strlen(d->to), d->to, NIL);
data/prayer-1.3.5-dfsg1/session/draft.c:1896:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        d->cc = (char *) rfc1522_decode(pool_alloc(pool, strlen(d->cc)),
data/prayer-1.3.5-dfsg1/session/draft.c:1897: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).
                                        strlen(d->cc), d->cc, NIL);
data/prayer-1.3.5-dfsg1/session/draft.c:1903: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).
        d->bcc = (char *) rfc1522_decode(pool_alloc(pool, strlen(d->bcc)),
data/prayer-1.3.5-dfsg1/session/draft.c:1904: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).
                                         strlen(d->bcc), d->bcc, NIL);
data/prayer-1.3.5-dfsg1/session/draft.c:1932: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).
            (char *) rfc1522_decode(pool_alloc(pool, strlen(d->reply_to)),
data/prayer-1.3.5-dfsg1/session/draft.c:1933: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(d->reply_to), d->reply_to, NIL);
data/prayer-1.3.5-dfsg1/session/draft.c:1940:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            = (char *) rfc1522_decode(pool_alloc(pool, strlen(d->subject)),
data/prayer-1.3.5-dfsg1/session/draft.c:1941: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).
                                      strlen(d->subject), d->subject, NIL);
data/prayer-1.3.5-dfsg1/session/draft.c:2022: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).
        len = strlen(d->body);
data/prayer-1.3.5-dfsg1/session/favourite.c:119: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 (!strncmp(line, "__PREFERRED__ ", strlen("__PREFERRED__ "))) {
data/prayer-1.3.5-dfsg1/session/favourite.c:120:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            char *s = line + strlen("__PREFERRED__ ");
data/prayer-1.3.5-dfsg1/session/favourite.c:127: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 (!strncmp(line, "__PREFERRED__ ", strlen("__PREFERRED__ ")))
data/prayer-1.3.5-dfsg1/session/favourite.c:128: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).
            favourite_preferred(fl, line + strlen("__PREFERRED__ "));
data/prayer-1.3.5-dfsg1/session/filter.c:228: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).
            BOOL rc = cdb_find(cld->cdb_map, text, strlen(text), &value);
data/prayer-1.3.5-dfsg1/session/folderlist.c:74: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/prayer-1.3.5-dfsg1/session/folderlist.c:292: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).
    int len = strlen(parent);
data/prayer-1.3.5-dfsg1/session/html_secure.c:60:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define NMATCH(string, tag) ((strncasecmp(string, tag, strlen(tag))) ? NIL : T)
data/prayer-1.3.5-dfsg1/session/html_secure.c:227: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 (!strncmp(s, "!--", strlen("!--"))) {
data/prayer-1.3.5-dfsg1/session/html_secure.c:228: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).
            s += strlen("!--");
data/prayer-1.3.5-dfsg1/session/html_secure.c:230: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).
                if ((c == '-') && !strncmp(s, "-->", strlen("-->"))) {
data/prayer-1.3.5-dfsg1/session/html_secure.c:231: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).
                    s += strlen("-->");
data/prayer-1.3.5-dfsg1/session/html_secure.c:346: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).
                    char *t = token + strlen("HREF=");
data/prayer-1.3.5-dfsg1/session/html_secure.c:352: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 ((*t == '"') && t[1] && (t[strlen(t) - 1] == '"')) {
data/prayer-1.3.5-dfsg1/session/html_secure.c:354: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).
                        t[strlen(t) - 1] = '\0';
data/prayer-1.3.5-dfsg1/session/html_secure.c:356: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).
                               && (t[strlen(t) - 1] == '\'')) {
data/prayer-1.3.5-dfsg1/session/html_secure.c:358: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).
                        t[strlen(t) - 1] = '\0';
data/prayer-1.3.5-dfsg1/session/html_secure.c:404: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).
                    char *t = token + strlen("SRC=");
data/prayer-1.3.5-dfsg1/session/html_secure.c:410: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 ((*t == '"') && t[1] && (t[strlen(t) - 1] == '"')) {
data/prayer-1.3.5-dfsg1/session/html_secure.c:412: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).
                        t[strlen(t) - 1] = '\0';
data/prayer-1.3.5-dfsg1/session/html_secure.c:414: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).
                               && (t[strlen(t) - 1] == '\'')) {
data/prayer-1.3.5-dfsg1/session/html_secure.c:416: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).
                        t[strlen(t) - 1] = '\0';
data/prayer-1.3.5-dfsg1/session/html_secure.c:521: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).
                        s += strlen("AMP;");
data/prayer-1.3.5-dfsg1/session/html_secure.c:528: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).
                        s += strlen("GT;");
data/prayer-1.3.5-dfsg1/session/html_secure.c:535: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).
                        s += strlen("LT;");
data/prayer-1.3.5-dfsg1/session/html_secure.c:542: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).
                        s += strlen("NBSP;");
data/prayer-1.3.5-dfsg1/session/html_secure.c:549: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).
                        s += strlen("POUND;");
data/prayer-1.3.5-dfsg1/session/html_secure.c:556: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).
                        s += strlen("QUOT;");
data/prayer-1.3.5-dfsg1/session/html_secure.c:573: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 (!strncmp(s, "!--", strlen("!--"))) {
data/prayer-1.3.5-dfsg1/session/html_secure.c:574: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).
            s += strlen("!--");
data/prayer-1.3.5-dfsg1/session/html_secure.c:576: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).
                if ((c == '-') && !strncmp(s, "-->", strlen("-->"))) {
data/prayer-1.3.5-dfsg1/session/html_secure.c:577: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).
                    s += strlen("-->");
data/prayer-1.3.5-dfsg1/session/html_secure_tidy.c:37:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(tmp, s, 6);
data/prayer-1.3.5-dfsg1/session/html_secure_tidy.c:42: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).
            s += strlen(tmp);
data/prayer-1.3.5-dfsg1/session/html_secure_tidy.c:61: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).
    unsigned long len = strlen(s)+1;
data/prayer-1.3.5-dfsg1/session/html_secure_tidy.c:216:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (!strncasecmp(href, array[i], strlen(array[i])))
data/prayer-1.3.5-dfsg1/session/html_secure_tidy.c:235:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (!strncasecmp(href, array[i], strlen(array[i])))
data/prayer-1.3.5-dfsg1/session/lookup.c:201: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).
        cdb_find(cdb, query, strlen(query), &ruser);
data/prayer-1.3.5-dfsg1/session/lookup.c:212: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).
        cdb_find(cdb, query, strlen(query), &rpass);
data/prayer-1.3.5-dfsg1/session/lookup.c:260: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).
        cdb_find(cdb_username, userid, strlen(userid), &user);
data/prayer-1.3.5-dfsg1/session/lookup.c:281: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).
        cdb_find(cdb_fullname, userid, strlen(userid), &full);
data/prayer-1.3.5-dfsg1/session/ml.c:430: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).
            (strncmp(s, "[APPENDUID ", strlen("[APPENDUID ")) != 0)) {
data/prayer-1.3.5-dfsg1/session/ml.c:455: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).
            (strncmp(s, "[APPENDUID ", strlen("[APPENDUID ")) != 0)) {
data/prayer-1.3.5-dfsg1/session/ml.c:480: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).
            (strncmp(s, "[APPENDUID ", strlen("[APPENDUID ")) != 0)) {
data/prayer-1.3.5-dfsg1/session/ml.c:505: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).
            (strncmp(s, "[APPENDUID ", strlen("[APPENDUID ")) != 0)) {
data/prayer-1.3.5-dfsg1/session/ml.c:536: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).
        (strncmp(s, "[COPYUID ", strlen("[COPYUID ")) != 0)) {
data/prayer-1.3.5-dfsg1/session/mm.c:161:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!strncmp(string, "[TRYCREATE] ", strlen("[TRYCREATE] ")))
data/prayer-1.3.5-dfsg1/session/mm.c:163: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).
    else if (!strncmp(string, "[CLOSED] ", strlen("[CLOSED] ")))
data/prayer-1.3.5-dfsg1/session/msgmap.c:871: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).
            p += strlen(p);
data/prayer-1.3.5-dfsg1/session/msgmap.c:1060: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).
            p += strlen(p);
data/prayer-1.3.5-dfsg1/session/options.c:100: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).
                                  string, strlen(string));
data/prayer-1.3.5-dfsg1/session/options.c:187: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).
    offset = strlen(key) + 1;
data/prayer-1.3.5-dfsg1/session/prefs.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).
    if (((len = strlen(key)) > 0) && (key[len - 1] == ':'))
data/prayer-1.3.5-dfsg1/session/prefs.c:535:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        unsigned long len = strlen(prefs->maildir);
data/prayer-1.3.5-dfsg1/session/rfc1522.c:68: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).
    for (p = known_escapes; *p && strncmp(esc_seq, *p, n = strlen(*p));
data/prayer-1.3.5-dfsg1/session/rfc1522.c:132: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).
				 (2 * RFC1522_DLIM_L) + strlen(S) + 1);
data/prayer-1.3.5-dfsg1/session/rfc1522.c:223: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).
                     rfc822_qprint((unsigned char *) txt, strlen(txt),
data/prayer-1.3.5-dfsg1/session/rfc1522.c:249: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).
                     rfc822_base64((unsigned char *) txt, strlen(txt),
data/prayer-1.3.5-dfsg1/session/rfc1522.c:302: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).
                   (unsigned char**)&s, strlen(s));
data/prayer-1.3.5-dfsg1/session/rfc1522.c:315: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).
                       (unsigned char**)&start, strlen(s));
data/prayer-1.3.5-dfsg1/session/rfc1522.c:341:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                           strlen(end_str + 1))
data/prayer-1.3.5-dfsg1/session/session.c:522: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 (buffer_size(b) > strlen("/opts="))
data/prayer-1.3.5-dfsg1/session/session.c:653: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).
        if (cdb_find(cdb, username, strlen(username), &value)) {
data/prayer-1.3.5-dfsg1/session/session.c:693: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).
        if (cdb_find(cdb, username, strlen(username), &value)) {
data/prayer-1.3.5-dfsg1/session/session.c:736: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).
        if (cdb_find(cdb, username, strlen(username), &value)) {
data/prayer-1.3.5-dfsg1/session/session.c:777: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).
        if (!strncmp(session->imapd_server, "$user", strlen("$user")))
data/prayer-1.3.5-dfsg1/session/session.c:780: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).
                              session->imapd_server + strlen("$user"));
data/prayer-1.3.5-dfsg1/session/session.c:781: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).
        else if (!strncmp(session->imapd_server, "${user}", strlen("${user}")))
data/prayer-1.3.5-dfsg1/session/session.c:784: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).
                              session->imapd_server + strlen("${user}"));
data/prayer-1.3.5-dfsg1/session/session.c:788:57:  [1] (buffer) strlen:
  Does not handle strings 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->accountd_server, "$user", strlen("$user")))
data/prayer-1.3.5-dfsg1/session/session.c:791:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                              session->accountd_server + strlen("$user"));
data/prayer-1.3.5-dfsg1/session/session.c:793:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                 (session->accountd_server, "${user}", strlen("${user}")))
data/prayer-1.3.5-dfsg1/session/session.c:796:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            session->accountd_server + strlen("${user}"));
data/prayer-1.3.5-dfsg1/session/session.c:997:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((seqno == NIL) || (strlen(seqno) != 4))
data/prayer-1.3.5-dfsg1/session/session.c:1162: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).
        *s = (unsigned char *) url + strlen(session->url_prefix_session);
data/prayer-1.3.5-dfsg1/session/session.c:1197: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).
        *s = (unsigned char *) url + strlen(session->url_prefix_session);
data/prayer-1.3.5-dfsg1/session/session_streams.c:670: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).
    INIT(&ms, mail_string, data, size = strlen(data));
data/prayer-1.3.5-dfsg1/session/session_streams.c:771: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).
              (strlen(name) >= strlen(prefs_folder_name)) &&
data/prayer-1.3.5-dfsg1/session/session_streams.c:771:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              (strlen(name) >= strlen(prefs_folder_name)) &&
data/prayer-1.3.5-dfsg1/session/session_streams.c:772: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).
              (!strcmp(name + strlen(name) - strlen(prefs_folder_name),
data/prayer-1.3.5-dfsg1/session/session_streams.c:772: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).
              (!strcmp(name + strlen(name) - strlen(prefs_folder_name),
data/prayer-1.3.5-dfsg1/session/sieve.c:435:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    unsigned long src_len = strlen(username)+strlen(password)+2;
data/prayer-1.3.5-dfsg1/session/sieve.c:435: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).
    unsigned long src_len = strlen(username)+strlen(password)+2;
data/prayer-1.3.5-dfsg1/session/sieve.c:724: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).
             script_name, strlen(script)); 
data/prayer-1.3.5-dfsg1/session/wrap.c:363:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                 strlen("---------- Forwarded")))
data/prayer-1.3.5-dfsg1/session/wrap.c:471:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((!strncasecmp(s, "<http://", strlen("<http://")) ||
data/prayer-1.3.5-dfsg1/session/wrap.c:472: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).
             !strncasecmp(s, "<https://", strlen("<https://"))) &&
data/prayer-1.3.5-dfsg1/session/wrap.c:473: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).
            (bytes > strlen("<http://")) && (s[bytes-1] == '>')) {
data/prayer-1.3.5-dfsg1/session/wrap.c:491: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).
        } else if (!strncasecmp(s, "http://", strlen("http://")) ||
data/prayer-1.3.5-dfsg1/session/wrap.c:492: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).
                   !strncasecmp(s, "https://", strlen("https://"))) {
data/prayer-1.3.5-dfsg1/shared/config.c:54:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(hostname, hname, hsize-1);
data/prayer-1.3.5-dfsg1/shared/config.c:70:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(hostname, he->h_name, hsize-1);
data/prayer-1.3.5-dfsg1/shared/config.c:85:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(hostname, maybe, hsize-1);
data/prayer-1.3.5-dfsg1/shared/config.c:94:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(domainname, dn+1, dsize-1);
data/prayer-1.3.5-dfsg1/shared/config.c:96:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(domainname, hostname, dsize-1);
data/prayer-1.3.5-dfsg1/shared/config.c:1475: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).
    unsigned long len = strlen(keyword);
data/prayer-1.3.5-dfsg1/shared/config.c:2000:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = getc(file)) != EOF)
data/prayer-1.3.5-dfsg1/shared/config.c:2430:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!strncmp(value, "$prefix", strlen("$prefix"))) {
data/prayer-1.3.5-dfsg1/shared/config.c:2438: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).
            pool_strcat(pool, config->prefix, value + strlen("$prefix"));
data/prayer-1.3.5-dfsg1/shared/config.c:2442: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(value, "${prefix}", strlen("${prefix}"))) {
data/prayer-1.3.5-dfsg1/shared/config.c:2450: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).
            pool_strcat(pool, config->prefix, value + strlen("${prefix}"));
data/prayer-1.3.5-dfsg1/shared/config.c:2454: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 (!strncmp(value, "$var_prefix", strlen("$var_prefix"))) {
data/prayer-1.3.5-dfsg1/shared/config.c:2463: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).
                        value + strlen("$var_prefix"));
data/prayer-1.3.5-dfsg1/shared/config.c:2467:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!strncmp(value, "${var_prefix}", strlen("${var_prefix}"))) {
data/prayer-1.3.5-dfsg1/shared/config.c:2476: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).
                        value + strlen("${var_prefix}"));
data/prayer-1.3.5-dfsg1/shared/config.c:2687: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).
    if (prefix && prefix[0] && !strncmp(dir, prefix, strlen(prefix))) {
data/prayer-1.3.5-dfsg1/shared/config.c:2690: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).
        s = partname + strlen(prefix);
data/prayer-1.3.5-dfsg1/shared/log.c:218: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).
    buffer = buffer + strlen(buffer);
data/prayer-1.3.5-dfsg1/shared/log.c:226: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).
    buffer = buffer + strlen(buffer);
data/prayer-1.3.5-dfsg1/shared/log.c:319: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).
        maxlen += strlen(username) + 3;  /* "(%s) " */
data/prayer-1.3.5-dfsg1/shared/log.c:329: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).
    error = buffer + (timelen = strlen(buffer));
data/prayer-1.3.5-dfsg1/shared/log.c:402: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).
        maxlen += strlen(username) + 3;  /* "(%s) " */
data/prayer-1.3.5-dfsg1/shared/log.c:416: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).
    tmp = output + (timelen = strlen(output));
data/prayer-1.3.5-dfsg1/shared/request.c:213: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).
    if (!strncasecmp(t, "https://", strlen("https://")))
data/prayer-1.3.5-dfsg1/shared/request.c:214: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).
        t += strlen("http://");
data/prayer-1.3.5-dfsg1/shared/request.c:215: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 (!strncasecmp(t, "http://", strlen("http://")))
data/prayer-1.3.5-dfsg1/shared/request.c:216: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).
        t += strlen("http://");
data/prayer-1.3.5-dfsg1/shared/request.c:371: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(token, "HTTP/", strlen("HTTP/")) ||
data/prayer-1.3.5-dfsg1/shared/request.c:372: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).
            (sscanf(token + strlen("HTTP/"), "%d.%d", &major, &minor) !=
data/prayer-1.3.5-dfsg1/shared/request.c:435:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                           strlen(value) + strlen(oldvalue) + 3);
data/prayer-1.3.5-dfsg1/shared/request.c:435:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                           strlen(value) + strlen(oldvalue) + 3);
data/prayer-1.3.5-dfsg1/shared/request.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).
        (strncmp(request->url_path, "/session", strlen("/session")) != 0))
data/prayer-1.3.5-dfsg1/shared/request.c:1030:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    unsigned long blen = strlen((char *) boundary);
data/prayer-1.3.5-dfsg1/shared/request.c:1122:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                           strlen(value) + strlen(oldvalue) + 3);
data/prayer-1.3.5-dfsg1/shared/request.c:1122:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                           strlen(value) + strlen(oldvalue) + 3);
data/prayer-1.3.5-dfsg1/shared/request.c:1159: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).
          !strncasecmp(s, "boundary=", strlen("boundary=")) &&
data/prayer-1.3.5-dfsg1/shared/request.c:1160: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).
          (boundary = (s + strlen("boundary=")))))
data/prayer-1.3.5-dfsg1/shared/request.c:1273:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!(s && !strncasecmp(s, "form-data", strlen("form-data"))))
data/prayer-1.3.5-dfsg1/shared/request.c:1275: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).
    s += strlen("form-data");
data/prayer-1.3.5-dfsg1/shared/request.c:1280: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).
    s += strlen("name=");
data/prayer-1.3.5-dfsg1/shared/request.c:1292:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                 strlen(data), &decode_len);
data/prayer-1.3.5-dfsg1/shared/request.c:1296:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                 strlen(data), &decode_len);
data/prayer-1.3.5-dfsg1/shared/request.c:1307: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).
        s += strlen("charset=");
data/prayer-1.3.5-dfsg1/shared/request.c:1313: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).
            decode_len = strlen(data);
data/prayer-1.3.5-dfsg1/shared/request.c:1329:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    unsigned long blen = strlen(boundary);
data/prayer-1.3.5-dfsg1/shared/request.c:1401: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).
          !strncasecmp(s, "boundary=", strlen("boundary=")) &&
data/prayer-1.3.5-dfsg1/shared/request.c:1402: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).
          (boundary = (s + strlen("boundary=")))))
data/prayer-1.3.5-dfsg1/shared/request.c:1624: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(hostname);
data/prayer-1.3.5-dfsg1/shared/response.c:569:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                     strlen("Mozilla/4.0 (compatible; MSIE ")) &&
data/prayer-1.3.5-dfsg1/shared/response.c:733:21:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while ((c = fgetc(file)) != EOF)
data/prayer-1.3.5-dfsg1/shared/user_agent.c:323: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 (!strncasecmp(browser, "Mozilla/5", strlen("Mozilla/5"))) {
data/prayer-1.3.5-dfsg1/shared/user_agent.c:354:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                     strlen("Mozilla/4.0 (compatible; MSIE "))) {
data/prayer-1.3.5-dfsg1/shared/user_agent.c:379:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                     strlen("Mozilla/3.0 (compatible; StarOffice "))) {
data/prayer-1.3.5-dfsg1/shared/user_agent.c:394:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!strncasecmp(browser, "Mozilla/4.", strlen("Mozilla/4.")) &&
data/prayer-1.3.5-dfsg1/shared/user_agent.c:395: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).
        (browser[strlen("Mozilla/4.")] != '0')) {
data/prayer-1.3.5-dfsg1/shared/user_agent.c:398: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 (s && !strncasecmp(s + 1, "Macintosh", strlen("Macintosh"))) {
data/prayer-1.3.5-dfsg1/shared/user_agent.c:406: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).
        } else if (s && !strncasecmp(s + 1, "Win", strlen("Win"))) {
data/prayer-1.3.5-dfsg1/shared/user_agent.c:418: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 (!strncasecmp(browser, "Mozilla/", strlen("Mozilla/"))) {
data/prayer-1.3.5-dfsg1/shared/user_agent.c:428: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 (!strncasecmp(browser, "Netscape/", strlen("Netscape/"))) {
data/prayer-1.3.5-dfsg1/shared/user_agent.c:438: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 (!strncasecmp(browser, "Lynx/", strlen("Lynx/"))) {
data/prayer-1.3.5-dfsg1/shared/user_agent.c:447: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 (!strncasecmp(browser, "w3m/", strlen("w3m/"))) {
data/prayer-1.3.5-dfsg1/shared/user_agent.c:512:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!strncasecmp(string, "disable=", strlen("disable="))) {
data/prayer-1.3.5-dfsg1/shared/user_agent.c:513: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).
        char *s = pool_strdup(pool, string + strlen("disable="));
data/prayer-1.3.5-dfsg1/shared/user_agent.c:526: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(string, "enable=", strlen("enable="))) {
data/prayer-1.3.5-dfsg1/shared/user_agent.c:527: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).
        char *s = pool_strdup(pool, string + strlen("enable="));
data/prayer-1.3.5-dfsg1/shared/user_agent.c:540: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 (!strncasecmp(string, "opts=", strlen("opts="))) {
data/prayer-1.3.5-dfsg1/shared/user_agent.c:541: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).
        char *s = pool_strdup(pool, string + strlen("opts="));
data/prayer-1.3.5-dfsg1/shared/user_agent.c:555:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!strncasecmp(string, "user-agent=", strlen("user-agent=")))
data/prayer-1.3.5-dfsg1/shared/user_agent.c:556: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).
        user_agent_process_browser(ua, string + strlen("user-agent="));
data/prayer-1.3.5-dfsg1/shared/user_agent.c:557: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).
    else if (!strncasecmp(string, "browser=", strlen("browser=")))
data/prayer-1.3.5-dfsg1/shared/user_agent.c:558: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).
        user_agent_process_browser(ua, string + strlen("user-agent="));
data/prayer-1.3.5-dfsg1/utils/ssl_prune_main.c:61: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).
                            "--config-file=", strlen("--config-file="))) {
data/prayer-1.3.5-dfsg1/utils/ssl_prune_main.c:62: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).
            config_filename = strdup(argv[i] + strlen("--config-file="));
data/prayer-1.3.5-dfsg1/utils/ssl_prune_main.c:65: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 (!strncmp(argv[i], "--ports=", strlen("--ports="))) {
data/prayer-1.3.5-dfsg1/utils/ssl_prune_main.c:66: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).
            ports = argv[i] + strlen("--ports=");

ANALYSIS SUMMARY:

Hits = 831
Lines analyzed = 64853 in approximately 1.90 seconds (34083 lines/second)
Physical Source Lines of Code (SLOC) = 43163
Hits@level = [0] 225 [1] 401 [2] 331 [3]  14 [4]  84 [5]   1
Hits@level+ = [0+] 1056 [1+] 831 [2+] 430 [3+]  99 [4+]  85 [5+]   1
Hits/KSLOC@level+ = [0+] 24.4654 [1+] 19.2526 [2+] 9.96224 [3+] 2.29363 [4+] 1.96928 [5+] 0.023168
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.