From 268313f406346dec8106b2afeba8cea7a727f9d0 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Thu, 5 Feb 2015 15:35:38 +0100 Subject: [PATCH] 0.161-3 Add elfutils-0.161-formref-type.patch. --- elfutils-0.161-formref-type.patch | 24 ++++++++++++++++++++++++ elfutils.spec | 8 +++++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 elfutils-0.161-formref-type.patch diff --git a/elfutils-0.161-formref-type.patch b/elfutils-0.161-formref-type.patch new file mode 100644 index 0000000..6f11e17 --- /dev/null +++ b/elfutils-0.161-formref-type.patch @@ -0,0 +1,24 @@ +commit 7c71382294af69f075c891a3418906c842491e4c +Author: Jason P. Leasure +Date: Wed Jan 14 09:26:55 2015 -0500 + + libdw: fix offset for sig8 lookup in dwarf_formref_die + + The type_offset of a type unit header is relative to the beginning + of the type unit header. + + Signed-off-by: Jason P. Leasure + +diff --git a/libdw/dwarf_formref_die.c b/libdw/dwarf_formref_die.c +index 63f6697..8b92e22 100644 +--- a/libdw/dwarf_formref_die.c ++++ b/libdw/dwarf_formref_die.c +@@ -95,7 +95,7 @@ dwarf_formref_die (attr, result) + + datap = cu->dbg->sectiondata[IDX_debug_types]->d_buf; + size = cu->dbg->sectiondata[IDX_debug_types]->d_size; +- offset = cu->type_offset; ++ offset = cu->start + cu->type_offset; + } + else + { diff --git a/elfutils.spec b/elfutils.spec index 67211df..b41daf0 100644 --- a/elfutils.spec +++ b/elfutils.spec @@ -1,7 +1,7 @@ Name: elfutils Summary: A collection of utilities and DSOs to handle compiled objects Version: 0.161 -%global baserelease 2 +%global baserelease 3 URL: https://fedorahosted.org/elfutils/ %global source_url http://fedorahosted.org/releases/e/l/elfutils/%{version}/ License: GPLv3+ and (GPLv2+ or LGPLv3+) @@ -47,6 +47,8 @@ Source: %{?source_url}%{name}-%{version}.tar.bz2 Patch1: %{?source_url}elfutils-portability-%{version}.patch Patch2: elfutils-0.161-ar-long-name.patch +# libdw: fix offset for sig8 lookup in dwarf_formref_die +Patch3: elfutils-0.161-formref-type.patch %if !%{compat} Release: %{baserelease}%{?dist} @@ -210,6 +212,7 @@ sed -i.scanf-m -e 's/%m/%a/g' src/addr2line.c tests/line2addr.c %endif %patch2 -p1 -b .ar_long_name +%patch3 -p1 -b .formref_type find . -name \*.sh ! -perm -0100 -print | xargs chmod +x @@ -338,6 +341,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_libdir}/libelf.a %changelog +* Thu Feb 05 2015 Mark Wielaard - 0.161-3 +- Add elfutils-0.161-formref-type.patch + * Tue Jan 13 2015 Mark Wielaard - 0.161-2 - Add elfutils-0.161-ar-long-name.patch (#1181525 CVE-2014-9447)