diff options
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/readelf.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 56243314..f9f98ac1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-02-15 Roland McGrath <[email protected]> + + * readelf.c (print_debug_frame_section): Add a cast to avoid sign + mismatch in comparison. + 2010-02-02 Roland McGrath <[email protected]> * readelf.c (print_encoding_base): Handle DW_EH_PE_absptr (zero). diff --git a/src/readelf.c b/src/readelf.c index 7b687d75..7b3c4f8b 100644 --- a/src/readelf.c +++ b/src/readelf.c @@ -4918,7 +4918,7 @@ print_debug_frame_section (Dwfl_Module *dwflmod, Ebl *ebl, GElf_Ehdr *ehdr, unsigned int augmentationlen; get_uleb128 (augmentationlen, readp); - if (augmentationlen > dataend - readp) + if (augmentationlen > (size_t) (dataend - readp)) error (1, 0, gettext ("invalid augmentation length")); const char *hdr = "Augmentation data:"; |
