diff options
author | Nick Clifton <nickc@redhat.com> | 2019-02-20 17:25:33 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2019-02-20 17:25:33 +0000 |
commit | 171375c68e809e97b5653ef424f80d46956a50e8 (patch) | |
tree | 6d9cce6fe9f361e030c374c4f440c2b3e2efc160 /gdb/build-id.c | |
parent | 7fc0c668f2aceb8582d74db1ad2528e2bba8a921 (diff) | |
download | gdb-171375c68e809e97b5653ef424f80d46956a50e8.zip gdb-171375c68e809e97b5653ef424f80d46956a50e8.tar.gz gdb-171375c68e809e97b5653ef424f80d46956a50e8.tar.bz2 |
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.
Diffstat (limited to 'gdb/build-id.c')
0 files changed, 0 insertions, 0 deletions