Fix illegal memory accesses by readelf when parsing corrupt IA64 unwind information.
authorNick Clifton <nickc@redhat.com>
Thu, 21 Feb 2019 10:54:12 +0000 (10:54 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 21 Feb 2019 10:54:12 +0000 (10:54 +0000)
commit5cacf1c88f8afa5a3a1fb6d88c297e19d99f21e0
tree83c3255c51f9a89979f3aba347a5e513cb114b81
parent160eba9301df423116377113f2d4189d785c7dde
Fix illegal memory accesses by readelf when parsing corrupt IA64 unwind information.

PR 24247
* unwind-ia64.c: Include sysdep.h.
(unw_decode_x1): Check current pointer against end pointer before
accessing memory.
(unw_decode_x2): Likewise.
(unw_decode_x3): Likewise.
(unw_decode_x4): Likewise.
(unw_decode_r2): Likewise.
(unw_decode_p2_p5): Likewise.
(unw_decode_p7_p10): Likewise.
(unw_decode): Likewise.
binutils/ChangeLog
binutils/unwind-ia64.c