Fix potential illegal memory access by readelf when parsing corrupt IA64 unwind infor...
authorNick Clifton <nickc@redhat.com>
Wed, 20 Feb 2019 17:25:33 +0000 (17:25 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 20 Feb 2019 17:25:33 +0000 (17:25 +0000)
commit171375c68e809e97b5653ef424f80d46956a50e8
tree6d9cce6fe9f361e030c374c4f440c2b3e2efc160
parent7fc0c668f2aceb8582d74db1ad2528e2bba8a921
Fix potential illegal memory access by readelf when parsing corrupt IA64 unwind information.

PR 24244
* unwind-ia64.c (unw_decode_uleb128): Add end parameter, use it to
prevent walking off the end of the buffer.
(unw_decode_x1): Add end paramter, pass it to unw_decode_uleb128.
(unw_decode_x2): Likewise.
(unw_decode_x3): Likewise.
(unw_decode_x4): Likewise.
(unw_decode_r2): Pass the end parameter to unw_decode_uleb128.
(unw_decode_r3): Likewise.
(unw_decode_p7_p10): Likewise.
(unw_decode_b2): Likewise.
(unw_decode_b3_x4): Likewise.
binutils/ChangeLog
binutils/unwind-ia64.c
This page took 0.042466 seconds and 4 git commands to generate.