summaryrefslogtreecommitdiff
path: root/mu/libexec/imap.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2017-10-10 11:46:44 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2017-10-10 12:30:51 +0300
commit090c7b9a38373ec605535b9bf22ecce2a1433c17 (patch)
tree194e423048cd6f9f785f5da9692b6a955204b515 /mu/libexec/imap.c
parent8f23330dc69d1a1e3ccf3687afdcb93cf19b4f76 (diff)
downloadmailutils-090c7b9a38373ec605535b9bf22ecce2a1433c17.tar.gz
mailutils-090c7b9a38373ec605535b9bf22ecce2a1433c17.tar.bz2
Check for NULL return from mu_address_aget_ and mu_address_sget_ family functions
It is possible that these functions return success and place NULL in the result variable. Make sure this possibility is checked throughout the code. * libmailutils/base/usremail.c (mu_set_user_email): Check for NULL return value from mu_address_[as]get. * libmailutils/mailbox/msgenv.c (message_envelope_sender) * libmailutils/tests/addr.c (parse) * libmu_scm/mu_message.c (mu_scm_message_print): * libproto/mailer/prog.c (_expand_rcpt) * libproto/mailer/smtp.c (_rcpt_to_addr) (mu_address_sget_email) * maidag/lmtp.c (check_address): * mail/from.c (hdr_from): * mail/util.c (util_get_sender): * mh/mh_format.c (addr_cmp, builtin_proper) (builtin_addr, builtin_pers, builtin_note) (builtin_mbox, builtin_path, builtin_formataddr) * mh/mh_whom.c (scan_addrs): * libmu_sieve/util.c (mu_sieve_vlist_compare): Skip NULL returns from retr. * libmu_sieve/actions.c (check_redirect_loop): Error checking. * include/mailutils/types.hin (mu_prstr): New function. * libmu_cpp/address.cc: Use mu_prstr to ensure the printable representation of string. * python/libmu_py/address.c: Likewise. * libmu_scm/mu_address.c (_get_address_part): Likewise. * libmailutils/string/wordsplit.c (expvar): Treat NULL value as "".
Diffstat (limited to 'mu/libexec/imap.c')
0 files changed, 0 insertions, 0 deletions

Return to:

Send suggestions and report system problems to the System administrator.