!244 [sync] PR-238: lsfd: fix memory leak in append_filter_expr()
From: @openeuler-sync-bot Reviewed-by: @openeuler-basic Signed-off-by: @openeuler-basic
This commit is contained in:
commit
e7274c6076
25
backport-lsfd-fix-memory-leak-in-append_filter_expr.patch
Normal file
25
backport-lsfd-fix-memory-leak-in-append_filter_expr.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From 53bcec4b25a60c125403a80a18ca3aacf1dc8269 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Karel Zak <kzak@redhat.com>
|
||||||
|
Date: Thu, 25 Apr 2024 15:12:56 +0800
|
||||||
|
Subject: [PATCH] lsfd: fix memory leak in append_filter_expr()
|
||||||
|
|
||||||
|
---
|
||||||
|
misc-utils/lsfd.c | 2 ++
|
||||||
|
1 file changed, 2 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/misc-utils/lsfd.c b/misc-utils/lsfd.c
|
||||||
|
index 9f74862..56c0f7a 100644
|
||||||
|
--- a/misc-utils/lsfd.c
|
||||||
|
+++ b/misc-utils/lsfd.c
|
||||||
|
@@ -1590,6 +1590,8 @@ static void append_filter_expr(char **a, const char *b, bool and)
|
||||||
|
xstrappend(a, "or(");
|
||||||
|
xstrappend(a, b);
|
||||||
|
xstrappend(a, ")");
|
||||||
|
+
|
||||||
|
+ free(tmp);
|
||||||
|
}
|
||||||
|
|
||||||
|
static struct lsfd_filter *new_filter(const char *expr, bool debug, const char *err_prefix, struct lsfd_control *ctl)
|
||||||
|
--
|
||||||
|
2.27.0
|
||||||
|
|
||||||
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: util-linux
|
Name: util-linux
|
||||||
Version: 2.39.1
|
Version: 2.39.1
|
||||||
Release: 6
|
Release: 7
|
||||||
Summary: A random collection of Linux utilities
|
Summary: A random collection of Linux utilities
|
||||||
License: GPLv2 and GPLv2+ and LGPLv2+ and BSD with advertising and Public Domain
|
License: GPLv2 and GPLv2+ and LGPLv2+ and BSD with advertising and Public Domain
|
||||||
URL: https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git
|
URL: https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git
|
||||||
@ -30,6 +30,7 @@ Patch6008: backport-CVE-2024-28085.patch
|
|||||||
Patch6009: backport-tests-test_mkfds-netlink-pass-a-correct-file-descrip.patch
|
Patch6009: backport-tests-test_mkfds-netlink-pass-a-correct-file-descrip.patch
|
||||||
Patch6010: backport-tests-functions.sh-add-a-helper-funcion-making-a-dev.patch
|
Patch6010: backport-tests-functions.sh-add-a-helper-funcion-making-a-dev.patch
|
||||||
Patch6011: backport-tests-lsfd-don-t-refer-on-the-line-follwoing-the-use.patch
|
Patch6011: backport-tests-lsfd-don-t-refer-on-the-line-follwoing-the-use.patch
|
||||||
|
Patch6012: backport-lsfd-fix-memory-leak-in-append_filter_expr.patch
|
||||||
|
|
||||||
Patch9000: SKIPPED-no-root-permissions-test.patch
|
Patch9000: SKIPPED-no-root-permissions-test.patch
|
||||||
%ifarch sw_64
|
%ifarch sw_64
|
||||||
@ -414,6 +415,12 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Apr 25 2024 liuh <liuhuan01@kylinos.cn> - 2.39.1-7
|
||||||
|
- Type:bugfix
|
||||||
|
- CVE:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:fix memory leak in append_filter_expr()
|
||||||
|
|
||||||
* Mon Apr 15 2024 zhangyao <zhangyao108@huawei.com> - 2.39.1-6
|
* Mon Apr 15 2024 zhangyao <zhangyao108@huawei.com> - 2.39.1-6
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- CVE:NA
|
- CVE:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user