Boost logo

Boost :

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[0]
> is never used).

Applied to SVN HEAD, thanks!

Beman, OK to merge those patches to release branch?

- Volodya


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk