0.161-3 Add elfutils-0.161-formref-type.patch.
This commit is contained in:
parent
f1c9e8f458
commit
268313f406
24
elfutils-0.161-formref-type.patch
Normal file
24
elfutils-0.161-formref-type.patch
Normal file
@ -0,0 +1,24 @@
|
||||
commit 7c71382294af69f075c891a3418906c842491e4c
|
||||
Author: Jason P. Leasure <jpleasu@super.org>
|
||||
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 <jpleasu@super.org>
|
||||
|
||||
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
|
||||
{
|
@ -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 <mjw@redhat.com> - 0.161-3
|
||||
- Add elfutils-0.161-formref-type.patch
|
||||
|
||||
* Tue Jan 13 2015 Mark Wielaard <mjw@redhat.com> - 0.161-2
|
||||
- Add elfutils-0.161-ar-long-name.patch (#1181525 CVE-2014-9447)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user