1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

stop parsing on lone tag escape

It's C

Credit to OSS-Fuzz
This commit is contained in:
Ailin Nemui 2021-02-27 18:31:00 +01:00
parent 73e73df1c5
commit 4c069f5c8f

View File

@ -395,6 +395,8 @@ static void unescape_tag(char *tag)
for (; *tmp != '\0'; tmp++, tag++) { for (; *tmp != '\0'; tmp++, tag++) {
if (*tmp == '\\') { if (*tmp == '\\') {
tmp++; tmp++;
if (*tmp == '\0')
break;
switch (*tmp) { switch (*tmp) {
case ':': case ':':
*tag = ';'; *tag = ';';