diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-02-24 01:47:51 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-02-24 10:36:51 -0500 |
commit | 94d15024fe3dff908ab570aaa741b1c834c856d6 (patch) | |
tree | 06538d9c122471238ba178b4b9babd4adbf9be12 /bfd/peXXigen.c | |
parent | 884151a7b8f1770a823e5017c8f5025802c44f24 (diff) | |
download | fsf-binutils-gdb-94d15024fe3dff908ab570aaa741b1c834c856d6.zip fsf-binutils-gdb-94d15024fe3dff908ab570aaa741b1c834c856d6.tar.gz fsf-binutils-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/peXXigen.c')
0 files changed, 0 insertions, 0 deletions