Bug in options_description.cpp when offer a long program options to boost::program_options

If you provide a long program options description while using boost, you
will encounter such issue, if you using debug version, you will see a debug
assertion failed alert, if you using release version, your program will be
crashed. following codes can be used to reproduce this issue
#include <iostream>
#include

Jack Shi wrote:
If you provide a long program options description while using boost, you will encounter such issue, if you using debug version, you will see a debug assertion failed alert, if you using release version, your program will be crashed. following codes can be used to reproduce this issue ....... if option description is long enough, the find function will be called, and "reverse_iteratorstring::const_iterator(line_begin - 1)" will lead to this issue, may "line_begin - 1" access a invalid space.
If there have some guys to confirm it was a bug in boost?
Please try CVS version. - Volodya
participants (2)
-
Jack Shi
-
Vladimir Prus