Accepting request 314851 from devel:libraries:c_c++

- Add patch for bnc#936786 CVE-2015-3239, off by one:
  * libunwind-CVE-2015-3239.patch

OBS-URL: https://build.opensuse.org/request/show/314851
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libunwind?expand=0&rev=33
This commit is contained in:
Stephan Kulow 2015-07-21 11:23:37 +00:00 committed by Git OBS Bridge
commit d1e8a7f29d
3 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,13 @@
Index: libunwind-1.1/include/dwarf_i.h
===================================================================
--- libunwind-1.1.orig/include/dwarf_i.h
+++ libunwind-1.1/include/dwarf_i.h
@@ -20,7 +20,7 @@
extern const uint8_t dwarf_to_unw_regnum_map[DWARF_REGNUM_MAP_LENGTH];
/* REG is evaluated multiple times; it better be side-effects free! */
# define dwarf_to_unw_regnum(reg) \
- (((reg) <= DWARF_REGNUM_MAP_LENGTH) ? dwarf_to_unw_regnum_map[reg] : 0)
+ (((reg) < DWARF_REGNUM_MAP_LENGTH) ? dwarf_to_unw_regnum_map[reg] : 0)
#endif
#ifdef UNW_LOCAL_ONLY

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jul 2 12:47:57 UTC 2015 - tchvatal@suse.com
- Add patch for bnc#936786 CVE-2015-3239, off by one:
* libunwind-CVE-2015-3239.patch
-------------------------------------------------------------------
Sun Mar 29 18:47:32 UTC 2015 - meissner@suse.com

View File

@ -34,6 +34,8 @@ Patch1: libunwind-1.1-expected-fails.patch
Patch2: libunwind-aarch64.patch
# PATCH-FIX-UPSTREAM: uweigand@de.ibm.com -- submitted to libunwind-devel
Patch3: libunwind-ppc64le.patch
# PATCH-FIX-UPSTREAM: bnc#936786 CVE-2015-3239
Patch4: libunwind-CVE-2015-3239.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
@ -63,6 +65,7 @@ call-chain of a program.
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%build
autoreconf -fvi