Blame SOURCES/binutils-CVE-2019-14444.patch

1ca8a1
--- binutils.orig/binutils/readelf.c	2019-08-13 10:03:33.518792590 +0100
1ca8a1
+++ binutils-2.32/binutils/readelf.c	2019-08-13 10:04:22.885418269 +0100
1ca8a1
@@ -13234,7 +13234,7 @@ apply_relocations (Filedata *
1ca8a1
 	    }
1ca8a1
 
1ca8a1
 	  rloc = start + rp->r_offset;
1ca8a1
-	  if ((rloc + reloc_size) > end || (rloc < start))
1ca8a1
+	  if (rloc >= end || (rloc + reloc_size) > end || (rloc < start))
1ca8a1
 	    {
1ca8a1
 	      warn (_("skipping invalid relocation offset 0x%lx in section %s\n"),
1ca8a1
 		    (unsigned long) rp->r_offset,