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

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