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

Do not read beyond end of escaped string

Credit to OSS-Fuzz
This commit is contained in:
ailin-nemui 2018-02-08 14:11:23 +01:00
parent 02712942e0
commit e32e9d63c6

View File

@ -485,7 +485,7 @@ static char *theme_format_expand_abstract(THEME_REC *theme, const char **formatp
str = g_string_new(NULL);
p = ret;
while (*p != '\0') {
if (*p == '\\') {
if (*p == '\\' && p[1] != '\0') {
int chr;
p++;
chr = expand_escape(&p);