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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user