mblaze

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

commit e725365d457e7264705d168291ee311b439a086c
parent 4d63b6fd8e1233b437a334fd97d29216e0ce0fd2
Author: Christian Neukirchen <chneukirchen@gmail.com>
Date:   Thu,  1 Sep 2016 15:36:55 +0200

blaze822: blaze822_addr: add bounds check when extracting display name

Discovered using the TREC 2005 Spam Public Corpora.
http://plg.uwaterloo.ca/~gvcormac/treccorpus/README.html

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

diff --git a/blaze822.c b/blaze822.c @@ -150,7 +150,7 @@ blaze822_addr(char *s, char **dispo, char **addro) *disp = 0; *addr = 0; - while (*s) { + while (*s && c < e) { startover: if (*s == '<') { char *c = addr;