diff --git a/0001-Fix-double-free-in-compute_abbrevs.patch b/0001-Fix-double-free-in-compute_abbrevs.patch new file mode 100644 index 0000000000000000000000000000000000000000..e03ebfe726341f9964643b006b6413e5a0d2e9d4 --- /dev/null +++ b/0001-Fix-double-free-in-compute_abbrevs.patch @@ -0,0 +1,25 @@ +From 1c4f5fee2a042446779e8f702908dfcdfd387189 Mon Sep 17 00:00:00 2001 +From: liuzhilin +Date: Mon, 14 Jul 2025 15:04:59 +0800 +Subject: [PATCH] Fix double free in compute_abbrevs + +--- + dwz.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/dwz.c b/dwz.c +index da4121f..a27eb4d 100644 +--- a/dwz.c ++++ b/dwz.c +@@ -11813,7 +11813,7 @@ compute_abbrevs (DSO *dso) + } + obstack_free (&ob2, (void *) arr); + } +- obstack_free (&ob2, (void *) t); ++ obstack_free (&ob2, (void *) cuarr); + for (cu = first_cu; cu; cu = cu->cu_next) + { + struct abbrev_tag **arr; +-- +2.33.0 + diff --git a/dwz.spec b/dwz.spec index be3eff154eeb81c12bd8ff1866e7aacf4450d1a1..6f21efd9e46b89e87c71740b4d1ec0c5f66eda92 100644 --- a/dwz.spec +++ b/dwz.spec @@ -1,11 +1,12 @@ Name: dwz Version: 0.15 -Release: 3 +Release: 4 Summary: A DWARF optimization and duplicate removal tool License: GPLv2+ and GPLv3+ URL: https://sourceware.org/dwz/ Source0:https://sourceware.org/ftp/dwz/releases/%{name}-%{version}.tar.xz Patch0:dwz-0.15-index9.patch +Patch1:0001-Fix-double-free-in-compute_abbrevs.patch BuildRequires:gcc gcc-c++ gdb elfutils-libelf-devel dejagnu BuildRequires:xxhash-devel @@ -53,6 +54,9 @@ make check %{_mandir}/man1/dwz* %changelog +* Mon Jul 14 2025 liuzhilin - 0.15-4 +- Fix double free in compute_abbrevs + * Fri Jan 17 2025 pengjian - 0.15-3 - add dwz-0.15-index9.patch