mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 09:02:13 +02:00
stop parsing on lone tag escape
It's C Credit to OSS-Fuzz
This commit is contained in:
parent
73e73df1c5
commit
4c069f5c8f
1 changed files with 2 additions and 0 deletions
|
|
@ -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 = ';';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue