diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-11-14 07:48:24 -0800 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-11-14 07:48:24 -0800 |
| commit | f645bf1b0c122f45c628d45e13d1ec3852028f99 (patch) | |
| tree | 6d8de11cf3cdc4532a6e74586545d6726ea8e4e9 | |
| parent | c6cc92ac87f778f09494828f10984e081bb0c783 (diff) | |
| parent | 87fa03ebce8d6dd4e076606d5a77b6619b5cf275 (diff) | |
| download | mruby-f645bf1b0c122f45c628d45e13d1ec3852028f99.tar.gz mruby-f645bf1b0c122f45c628d45e13d1ec3852028f99.zip | |
Merge pull request #1573 from Fleurer/fix1572
fix length check in read_section_debug()
| -rw-r--r-- | src/load.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/load.c b/src/load.c index 4fec90d8d..e4aefa402 100644 --- a/src/load.c +++ b/src/load.c @@ -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; } |
