
10 Feb
2008
10 Feb
'08
1:23 p.m.
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[0] is never used).
Applied to SVN HEAD, thanks! Beman, OK to merge those patches to release branch? - Volodya