Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > e4f13fd21fbddde6895b69844502f496 > files > 12

elfutils-0.155-2.mga3.src.rpm

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

Index: elfutils-0.150/src/readelf.c
===================================================================
--- elfutils-0.150.orig/src/readelf.c	2011-01-15 17:43:36.000000000 +0100
+++ elfutils-0.150/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
 				      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;