Package: libunwind / 1.1-4.1

20150704-CVE-2015-3239_dwarf_i.h.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: pkg-libunwind/include/dwarf_i.h
===================================================================
--- pkg-libunwind.orig/include/dwarf_i.h	2015-07-04 10:57:29.000000000 +0900
+++ pkg-libunwind/include/dwarf_i.h	2015-07-04 11:06:08.675616821 +0900
@@ -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