aboutsummaryrefslogtreecommitdiff
path: root/bfd/configure
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-02-24 01:47:51 -0500
committerMike Frysinger <vapier@gentoo.org>2015-02-24 10:36:51 -0500
commit94d15024fe3dff908ab570aaa741b1c834c856d6 (patch)
tree06538d9c122471238ba178b4b9babd4adbf9be12 /bfd/configure
parent884151a7b8f1770a823e5017c8f5025802c44f24 (diff)
downloadgdb-94d15024fe3dff908ab570aaa741b1c834c856d6.zip
gdb-94d15024fe3dff908ab570aaa741b1c834c856d6.tar.gz
gdb-94d15024fe3dff908ab570aaa741b1c834c856d6.tar.bz2
readelf: handle corrupted chains better
The current chain walker tries to protect itself against loops, by only works with loops of length 1: a chain that points to itself. If you have a chain longer than that (3->4->3->4->...), readelf will still hang. Since we know the max length of the chain, simply abort when we've walked more times than that. The only way that could have happened is if there was a loop.
Diffstat (limited to 'bfd/configure')
0 files changed, 0 insertions, 0 deletions