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

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