Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > a0abe7e08593646e76641f744c288ce9 > files > 12

elfutils-0.157-3.2.mga4.src.rpm

---
 src/readelf.c |    4 	2 +	2 -	0 !
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: elfutils-0.157/src/readelf.c
===================================================================
--- elfutils-0.157.orig/src/readelf.c	2011-01-15 17:43:36.000000000 +0100
+++ elfutils-0.157/src/readelf.c	2011-01-15 18:11:56.000000000 +0100
@@ -4603,7 +4603,7 @@ print_debug_ranges_section (Dwfl_Module 
 				      offset, &readp, endp))
 	continue;
 
-      if (unlikely (data->d_size - offset < address_size * 2))
+      if (unlikely ((uint_fast8_t)(data->d_size - offset) < address_size * 2))
 	{
 	  printf (gettext (" [%6tx]  <INVALID DATA>\n"), offset);
 	  break;
@@ -6374,7 +6374,7 @@ print_debug_loc_section (Dwfl_Module *dw
 				      &cu, offset, &readp, endp))
 	continue;
 
-      if (unlikely (data->d_size - offset < address_size * 2))
+      if (unlikely ((uint_fast8_t)(data->d_size - offset) < address_size * 2))
 	{
 	  printf (gettext (" [%6tx]  <INVALID DATA>\n"), offset);
 	  break;