spirit/iterator/multi_pass: end iterator dereferenced

17 Jul
2004
17 Jul
'04
10 a.m.
Hi, Lines 572-573 of multi_pass.hpp are: ensure_initialized(); return !data || data->input == InputT(); The code tries to read data in ensure_initialized even when testing for end of file (which means the input iterator is invalid). So here comes a patch. Regards, Guillaume

19 Jul
19 Jul
8:23 a.m.
Guillaume Melquiond wrote:
Lines 572-573 of multi_pass.hpp are:
ensure_initialized(); return !data || data->input == InputT();
The code tries to read data in ensure_initialized even when testing for end of file (which means the input iterator is invalid). So here comes a patch.
Thanks for pointing this out. I've fixed it in the CVS's (Boost and Spirit). Regards Hartmut
7636
Age (days ago)
7638
Last active (days ago)
1 comments
2 participants
participants (2)
-
Guillaume Melquiond
-
Hartmut Kaiser