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

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