summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/libsolv/libsolv/0004-Fix-Add-va_end-before-return.patch
diff options
context:
space:
mode:
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.patch36
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 @@
1From 58053b44c9ed043d48fa7dd595d213849b733f0f Mon Sep 17 00:00:00 2001
2From: Jaroslav Rohel <jrohel@redhat.com>
3Date: Tue, 11 Dec 2018 09:50:06 +0100
4Subject: [PATCH] Fix: Add va_end() before return
5Reply-To: muislam@microsoft.com
6
7The va_end() performs cleanup.
8If va_end() is not called before a function that calls va_start() returns,
9the behavior is undefined.
10
11CVE: CVE-2018-20532 CVE-2018-20533 CVE-2018-20534
12
13Upstream-Status: Backport
14
15Signed-off-by: Muminul Islam <muislam@microsoft.com>
16
17Cherry picked from https://github.com/openSUSE/libsolv/pull/291/commits
18---
19 src/pool.c | 1 +
20 1 file changed, 1 insertion(+)
21
22diff --git a/src/pool.c b/src/pool.c
23index 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--
352.23.0
36