summaryrefslogtreecommitdiff
path: root/backport-CVE-2024-12085.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-01-15 05:35:26 +0000
committerCoprDistGit <infra@openeuler.org>2025-01-15 05:35:26 +0000
commitf11c15898301b307b5f632569b1946fc6f3d15d2 (patch)
tree71a7783a3e100b5738f4612828b75f07527d347a /backport-CVE-2024-12085.patch
parent91c281cabee2f40953d20ff0b4aa681d46c9e17b (diff)
automatic import of rsyncopeneuler24.03_LTS
Diffstat (limited to 'backport-CVE-2024-12085.patch')
-rw-r--r--backport-CVE-2024-12085.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/backport-CVE-2024-12085.patch b/backport-CVE-2024-12085.patch
new file mode 100644
index 0000000..7356fb6
--- /dev/null
+++ b/backport-CVE-2024-12085.patch
@@ -0,0 +1,27 @@
+From cf620065502f065d4ea44f5df4f81295a738aa21 Mon Sep 17 00:00:00 2001
+From: Andrew Tridgell <andrew@tridgell.net>
+Date: Thu, 14 Nov 2024 09:57:08 +1100
+Subject: [PATCH] prevent information leak off the stack
+
+prevent leak of uninitialised stack data in hash_search
+---
+ match.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/match.c b/match.c
+index 36e78ed2..dfd6af2c 100644
+--- a/match.c
++++ b/match.c
+@@ -147,6 +147,9 @@ static void hash_search(int f,struct sum_struct *s,
+ int more;
+ schar *map;
+
++ // prevent possible memory leaks
++ memset(sum2, 0, sizeof sum2);
++
+ /* want_i is used to encourage adjacent matches, allowing the RLL
+ * coding of the output to work more efficiently. */
+ want_i = 0;
+--
+2.34.1
+