Check boundary first in parse_rfc5424()
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
parent
ebced817a7
commit
d1f1702277
@ -890,7 +890,7 @@ parsemsg_rfc5424(const char *from, int pri, char *msg)
|
||||
const char *start; \
|
||||
\
|
||||
start = msg; \
|
||||
while (*msg >= '!' && *msg <= '~' && *msg != '=' && \
|
||||
while (*msg && *msg >= '!' && *msg <= '~' && *msg != '=' && \
|
||||
*msg != ']' && *msg != '"') \
|
||||
++msg; \
|
||||
FAIL_IF("STRUCTURED-NAME", start == msg); \
|
||||
|
Loading…
x
Reference in New Issue
Block a user