mirror of
https://github.com/irssi/irssi.git
synced 2025-04-26 13:01:11 -05:00
skip parsing empty tags
Credit to OSS-Fuzz
This commit is contained in:
parent
b47257048c
commit
a8144cd98f
@ -433,6 +433,8 @@ GHashTable *irc_parse_message_tags(const char *tags)
|
|||||||
(GDestroyNotify) i_refstr_release, (GDestroyNotify) g_free);
|
(GDestroyNotify) i_refstr_release, (GDestroyNotify) g_free);
|
||||||
split = g_strsplit(tags, ";", -1);
|
split = g_strsplit(tags, ";", -1);
|
||||||
for (tmp = split; *tmp != NULL; tmp++) {
|
for (tmp = split; *tmp != NULL; tmp++) {
|
||||||
|
if (*tmp[0] == '\0')
|
||||||
|
continue;
|
||||||
kv = g_strsplit(*tmp, "=", 2);
|
kv = g_strsplit(*tmp, "=", 2);
|
||||||
unescape_tag(kv[1]);
|
unescape_tag(kv[1]);
|
||||||
g_hash_table_replace(hash, i_refstr_intern(kv[0]),
|
g_hash_table_replace(hash, i_refstr_intern(kv[0]),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user