libunwind package for centos7 MOS 8
[packages/centos7/libunwind.git] / libunwind-1.1-fix-CVE-2015-3239.patch
1 diff -up libunwind-1.1/include/dwarf_i.h.CVE20153239 libunwind-1.1/include/dwarf_i.h
2 --- libunwind-1.1/include/dwarf_i.h.CVE20153239 2015-07-10 13:38:36.404996748 -0400
3 +++ libunwind-1.1/include/dwarf_i.h     2015-07-10 13:39:25.050707613 -0400
4 @@ -20,7 +20,7 @@
5  extern const uint8_t dwarf_to_unw_regnum_map[DWARF_REGNUM_MAP_LENGTH];
6  /* REG is evaluated multiple times; it better be side-effects free!  */
7  # define dwarf_to_unw_regnum(reg)                                        \
8 -  (((reg) <= DWARF_REGNUM_MAP_LENGTH) ? dwarf_to_unw_regnum_map[reg] : 0)
9 +  (((reg) < DWARF_REGNUM_MAP_LENGTH) ? dwarf_to_unw_regnum_map[reg] : 0)
10  #endif
11  
12  #ifdef UNW_LOCAL_ONLY