/[packages]/updates/5/irssi/current/SOURCES/CVE-2018-5205.patch
ViewVC logotype

Contents of /updates/5/irssi/current/SOURCES/CVE-2018-5205.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1192409 - (show annotations) (download)
Thu Jan 11 18:41:00 2018 UTC (11 months ago) by wally
File size: 990 byte(s)
- add patches from Ubuntu to fix CVE-2018-520[5-8] (mga#22328)

1 From 7a83c63701b7395ee6cc606905314318eef77971 Mon Sep 17 00:00:00 2001
2 From: ailin-nemui <ailin-nemui@users.noreply.github.com>
3 Date: Wed, 3 Jan 2018 14:09:48 +0100
4 Subject: [PATCH] check if \\c is complete in eval
5
6 ---
7 src/core/misc.c | 7 +++++--
8 1 file changed, 5 insertions(+), 2 deletions(-)
9
10 Index: irssi-0.8.20/src/core/misc.c
11 ===================================================================
12 --- irssi-0.8.20.orig/src/core/misc.c 2018-01-08 14:38:19.943886570 -0500
13 +++ irssi-0.8.20/src/core/misc.c 2018-01-08 14:38:19.939886564 -0500
14 @@ -776,8 +776,11 @@ int expand_escape(const char **data)
15 *data += 2;
16 return strtol(digit, NULL, 16);
17 case 'c':
18 - /* control character (\cA = ^A) */
19 - (*data)++;
20 + /* check for end of string */
21 + if ((*data)[1] == '\0')
22 + return 0;
23 + /* control character (\cA = ^A) */
24 + (*data)++;
25 return i_toupper(**data) - 64;
26 case '0': case '1': case '2': case '3':
27 case '4': case '5': case '6': case '7':

  ViewVC Help
Powered by ViewVC 1.1.26