aboutsummaryrefslogtreecommitdiff
path: root/blaze822.c
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2019-02-27 22:42:15 +0100
committerLeah Neukirchen <leah@vuxu.org>2019-02-27 22:42:15 +0100
commit3d3fffd7e89937229e64d458d8ac65db1f22fbfe (patch)
treefe4daf0b9dac5f4f2b1eb331644c4999fe178240 /blaze822.c
parent3f2c714b4268e78bccb4fb3aaa2a77b3f0568744 (diff)
downloadmblaze-3d3fffd7e89937229e64d458d8ac65db1f22fbfe.tar.gz
blaze822: blaze822_addr: fix reading over the end of address if it ends with , or ;
Found by duncaen with afl.
Diffstat (limited to 'blaze822.c')
-rw-r--r--blaze822.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/blaze822.c b/blaze822.c
index 2dfd79b..d8edcad 100644
--- a/blaze822.c
+++ b/blaze822.c
@@ -219,8 +219,9 @@ blaze822_addr(char *s, char **dispo, char **addro)
s++;
if (*addr || *disp)
break;
+ } else {
+ s++;
}
- s++;
} else if (*s == '<') {
char tok[1024] = { 0 };
char *c = tok;