diff options
author | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2018-02-08 14:11:23 +0100 |
---|---|---|
committer | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2018-02-08 14:11:23 +0100 |
commit | e32e9d63c67ab95ef0576154680a6c52334b97af (patch) | |
tree | eac1eb67177274285707d9b631b4556d524c3cb9 /src/fe-common/core | |
parent | 02712942e033c467da1c473c34fb4d631e0a0d23 (diff) | |
download | irssi-e32e9d63c67ab95ef0576154680a6c52334b97af.zip |
Do not read beyond end of escaped string
Credit to OSS-Fuzz
Diffstat (limited to 'src/fe-common/core')
-rw-r--r-- | src/fe-common/core/themes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-common/core/themes.c b/src/fe-common/core/themes.c index acb5d1c7..5a817daa 100644 --- a/src/fe-common/core/themes.c +++ b/src/fe-common/core/themes.c @@ -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); |