diff options
Diffstat (limited to 'meta/recipes-extended/libsolv/libsolv/0004-Fix-Add-va_end-before-return.patch')
-rw-r--r-- | meta/recipes-extended/libsolv/libsolv/0004-Fix-Add-va_end-before-return.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-extended/libsolv/libsolv/0004-Fix-Add-va_end-before-return.patch b/meta/recipes-extended/libsolv/libsolv/0004-Fix-Add-va_end-before-return.patch new file mode 100644 index 0000000000..fde19940ed --- /dev/null +++ b/meta/recipes-extended/libsolv/libsolv/0004-Fix-Add-va_end-before-return.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | From 58053b44c9ed043d48fa7dd595d213849b733f0f Mon Sep 17 00:00:00 2001 | ||
2 | From: Jaroslav Rohel <jrohel@redhat.com> | ||
3 | Date: Tue, 11 Dec 2018 09:50:06 +0100 | ||
4 | Subject: [PATCH] Fix: Add va_end() before return | ||
5 | Reply-To: muislam@microsoft.com | ||
6 | |||
7 | The va_end() performs cleanup. | ||
8 | If va_end() is not called before a function that calls va_start() returns, | ||
9 | the behavior is undefined. | ||
10 | |||
11 | CVE: CVE-2018-20532 CVE-2018-20533 CVE-2018-20534 | ||
12 | |||
13 | Upstream-Status: Backport | ||
14 | |||
15 | Signed-off-by: Muminul Islam <muislam@microsoft.com> | ||
16 | |||
17 | Cherry picked from https://github.com/openSUSE/libsolv/pull/291/commits | ||
18 | --- | ||
19 | src/pool.c | 1 + | ||
20 | 1 file changed, 1 insertion(+) | ||
21 | |||
22 | diff --git a/src/pool.c b/src/pool.c | ||
23 | index 60cc0f49..f03b43f9 100644 | ||
24 | --- a/src/pool.c | ||
25 | +++ b/src/pool.c | ||
26 | @@ -1505,6 +1505,7 @@ pool_debug(Pool *pool, int type, const char *format, ...) | ||
27 | vprintf(format, args); | ||
28 | else | ||
29 | vfprintf(stderr, format, args); | ||
30 | + va_end(args); | ||
31 | return; | ||
32 | } | ||
33 | vsnprintf(buf, sizeof(buf), format, args); | ||
34 | -- | ||
35 | 2.23.0 | ||
36 | |||