mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-09 11:53:13 +02:00
Fix OOB read in UTF8ONLY code from today.
This commit is contained in:
@@ -114,7 +114,7 @@ const char *parse_get_command(const char *msg)
|
||||
/* Skip message tags (if any) */
|
||||
if (*p == '@')
|
||||
{
|
||||
for (p = p + 1; *p != ' '; p++);
|
||||
for (p++; *p && (*p != ' '); p++);
|
||||
for (; *p == ' '; p++);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user