msgbuf: Fix remote crash vulnerability due to malformed message tag.
Fixes #218 Reported-by: ManiacTwister <github@s7t.de>
This commit is contained in:
parent
c4acd427ac
commit
6d16f66be6
1 changed files with 2 additions and 0 deletions
|
@ -78,6 +78,8 @@ msgbuf_parse(struct MsgBuf *msgbuf, char *line)
|
|||
|
||||
*ch++ = '\0';
|
||||
}
|
||||
else
|
||||
ch = t;
|
||||
}
|
||||
|
||||
/* skip any whitespace between tags and origin */
|
||||
|
|
Loading…
Reference in a new issue