mblaze

Unix utilities to deal with Maildir - my mirror
git clone https://pi.duncano.de/git/mblaze.git
Log | Files | Refs | README | COPYING

commit be6bbf6056ac6fdedb224646bea6be3c7be15267
parent 5fe0003c982f898e6feca13ea5d0921fcb17858e
Author: Leah Neukirchen <leah@vuxu.org>
Date:   Sun,  8 Oct 2017 21:15:49 +0200

blaze822: blaze822_addr: ensure strlen is not run on null pointer

Found by Larry Hynes.

Diffstat:
blaze822.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/blaze822.c b/blaze822.c @@ -232,11 +232,11 @@ startover: } char *host = strrchr(addr, '@'); - ssize_t hlen = strlen(host); char *u; if (host && (u = strpbrk(addr, "()<>[]:;@\\,\"")) && u < host) { // need to "-quote local-part + ssize_t hlen = strlen(host); char addr2[sizeof addr]; char *e = addr2 + sizeof addr2 - 1; char *t;