diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-02-19 22:55:02 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-02-19 22:55:02 -0800 |
commit | 5af9f2717274efe5e2aebfe6a8154d700ec7e471 (patch) | |
tree | df460ee82d454c76ba815da123308e8d0dfb8778 /src/iterator.h | |
parent | 0fdb06f275aeb67331fd0984d89227ecadeeb26e (diff) |
Fixed use-after-free error.
Closes #9, confirmed with ASAN.
Avoid using `parser->current` in the loop that creates new
blocks, since `finalize` in `add_child` may have removed
the current parser (if it contains only reference definitions).
This isn't a great solution; in the long run we need to rewrite
to make the logic clearer and to make it harder to make
mistakes like this one.
Diffstat (limited to 'src/iterator.h')
0 files changed, 0 insertions, 0 deletions