1
0
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:
Bram Matthys
2025-09-20 17:00:33 +02:00
parent b4e65b1414
commit ccc80477ef
+1 -1
View File
@@ -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++);
}