From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-02-10 08:23:00
C. K. Jester-Young wrote:
> In the program_options library, command-line parsing functions that take
> (argc, argv) arguments do not check for a zero argc. Thus, when argc is
> zero, the iterators passed to the vector constructor have first > last,
> which results in undefined behaviour. Patches are attached which address
> this (minimally, simply by treating argc as 1 when it's 0, since argv
> is never used).
Applied to SVN HEAD, thanks!
Beman, OK to merge those patches to release branch?