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

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