Blame SOURCES/binutils-CVE-2018-7643.patch

869a11
--- binutils.orig/binutils/dwarf.c	2018-04-27 09:22:07.402864408 +0100
869a11
+++ binutils-2.30/binutils/dwarf.c	2018-04-27 09:24:26.794235786 +0100
869a11
@@ -6810,6 +6810,13 @@ display_debug_ranges (struct dwarf_secti
869a11
 	  continue;
869a11
 	}
869a11
 
869a11
+      if (next < section_begin || next >= finish)
869a11
+	{
869a11
+	  warn (_("Corrupt offset (%#8.8lx) in range entry %u\n"),
869a11
+		(unsigned long) offset, i);
869a11
+	  continue;
869a11
+	}
869a11
+
869a11
       if (dwarf_check != 0 && i > 0)
869a11
 	{
869a11
 	  if (start < next)