1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-06 06:13:13 +02:00

Fix OOB read due to message tag with trailing backslash.

This commit is contained in:
Bram Matthys
2019-05-25 15:48:33 +02:00
parent b63a67dea0
commit 39cd11f504
+2
View File
@@ -88,6 +88,8 @@ void message_tag_unescape(char *in, char *out)
*out++ = '\r'; /* \r to CR */
else if (*in == 'n')
*out++ = '\n'; /* \n to LF */
else if (*in == '\0')
break; /* unfinished escaping (\) */
else
*out++ = *in; /* all rest is as-is */
continue;