|
|
@ -0,0 +1,27 @@ |
|
|
|
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
|
# |
|
|
|
# Filename: package/.../libunwind/001-invalid-dwarf-opcodes-can-cause-references-beyond.patch |
|
|
|
# Copyright (C) 2016 The OpenSDE Project |
|
|
|
# |
|
|
|
# More information can be found in the files COPYING and README. |
|
|
|
# |
|
|
|
# This patch file is dual-licensed. It is available under the license the |
|
|
|
# patched project is licensed under, as long as it is an OpenSource license |
|
|
|
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms |
|
|
|
# of the GNU General Public License as published by the Free Software |
|
|
|
# Foundation; either version 2 of the License, or (at your option) any later |
|
|
|
# version. |
|
|
|
# --- SDE-COPYRIGHT-NOTE-END --- |
|
|
|
|
|
|
|
--- a/include/dwarf_i.h
|
|
|
|
+++ b/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 |