diff options
author | Leah Neukirchen <leah@vuxu.org> | 2019-02-27 22:42:15 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2019-02-27 22:42:15 +0100 |
commit | 3d3fffd7e89937229e64d458d8ac65db1f22fbfe (patch) | |
tree | fe4daf0b9dac5f4f2b1eb331644c4999fe178240 | |
parent | 3f2c714b4268e78bccb4fb3aaa2a77b3f0568744 (diff) | |
download | mblaze-3d3fffd7e89937229e64d458d8ac65db1f22fbfe.tar.gz mblaze-3d3fffd7e89937229e64d458d8ac65db1f22fbfe.tar.xz mblaze-3d3fffd7e89937229e64d458d8ac65db1f22fbfe.zip |
blaze822: blaze822_addr: fix reading over the end of address if it ends with , or ;
Found by duncaen with afl.
-rw-r--r-- | blaze822.c | 3 |
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; |