diff options
author | David O'Brien <obrien@FreeBSD.org> | 2002-10-31 09:18:48 +0000 |
---|---|---|
committer | David O'Brien <obrien@FreeBSD.org> | 2002-10-31 09:18:48 +0000 |
commit | ebbe08b1d6203f7b3e1ecf0342ce8c91daa9641b (patch) | |
tree | 0a04c2d5f15f035dd825201f4dc4c34fa9493cbe /bfd/elf-eh-frame.c | |
parent | 0f7c762b2fda7c7f242f8aed9f135ad6036ffe05 (diff) | |
download | binutils-redhat-ebbe08b1d6203f7b3e1ecf0342ce8c91daa9641b.tar.gz |
2002-10-31 David O'Brien <obrien@FreeBSD.org>
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't mix
signed and unsigned in comparison.
Approved by: Alan Modra <amodra@bigpond.net.au>
Message-ID: <20021012185224.Y979@bubble.sa.bigpond.net.au>
Diffstat (limited to 'bfd/elf-eh-frame.c')
-rw-r--r-- | bfd/elf-eh-frame.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf-eh-frame.c b/bfd/elf-eh-frame.c index e80fc6c9d5..b6d2d2f808 100644 --- a/bfd/elf-eh-frame.c +++ b/bfd/elf-eh-frame.c @@ -414,7 +414,7 @@ _bfd_elf_discard_section_eh_frame (abfd, info, sec, ehdrsec, /* 64-bit .eh_frame is not supported. */ goto free_no_table; buf += 4; - if ((buf - ehbuf) + hdr.length > sec->_raw_size) + if ((bfd_size_type) (buf - ehbuf) + hdr.length > sec->_raw_size) /* CIE/FDE not contained fully in this .eh_frame input section. */ goto free_no_table; |