PR22204, Lack of DW_LNE_end_sequence causes "infinite" loop
[deliverable/binutils-gdb.git] / bfd / dwarf2.c
index 9ae5fba63790c59f9e2aab5f2313d412822fdde9..2c457909356b4a4d2f44ca117cbca7d3e5c42980 100644 (file)
@@ -2277,7 +2277,7 @@ decode_line_info (struct comp_unit *unit, struct dwarf2_debug *stash)
       bfd_vma high_pc = 0;
 
       /* Decode the table.  */
-      while (! end_sequence)
+      while (!end_sequence && line_ptr < line_end)
        {
          op_code = read_1_byte (abfd, line_ptr, line_end);
          line_ptr += 1;
This page took 0.041386 seconds and 4 git commands to generate.