Commit f645bf1b authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #1573 from Fleurer/fix1572

fix length check in read_section_debug()
parents c6cc92ac 87fa03eb
......@@ -386,6 +386,7 @@ read_section_debug(mrb_state *mrb, const uint8_t *start, mrb_irep *irep)
result = read_debug_record(mrb, bin, irep, &len, filenames, filenames_len);
if (result != MRB_DUMP_OK) goto debug_exit;
bin += len;
if ((bin - start) != bin_to_uint32(header->section_size)) {
result = MRB_DUMP_GENERAL_FAILURE;
}
......
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