Commit 157a5529 authored by take_cheeze's avatar take_cheeze

check returning line entry pointer is greater or equal to the first line entry pointer

parent 872f76e6
......@@ -89,7 +89,7 @@ mrb_debug_get_line(mrb_irep* irep, uint32_t const pc)
--ret;
mrb_assert((ret - f->line_flat_map) < f->line_entry_count);
mrb_assert(f->line_flat_map <= ret && ret < (f->line_flat_map + f->line_entry_count));
mrb_assert(ret->start_pos <= pc &&
pc < (((ret + 1 - f->line_flat_map) < f->line_entry_count)
? (ret+1)->start_pos : irep->debug_info->pc_count));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment