msgbuf: Fix remote crash vulnerability due to malformed message tag.

Fixes #218

Reported-by: ManiacTwister <github@s7t.de>
This commit is contained in:
Aaron Jones 2016-09-11 10:33:19 +00:00
parent c4acd427ac
commit 6d16f66be6
No known key found for this signature in database
GPG key ID: EC6F86EE9CD840B5

View file

@ -78,6 +78,8 @@ msgbuf_parse(struct MsgBuf *msgbuf, char *line)
*ch++ = '\0';
}
else
ch = t;
}
/* skip any whitespace between tags and origin */