Skip to content
Snippets Groups Projects
Commit 0f1d345e authored by Boroondas Gupte (original fix by Aleric Inglewood)'s avatar Boroondas Gupte (original fix by Aleric Inglewood)
Browse files

VWR-23459 FIXED Viewer compiled against Boost-1.42 crashes when certain...

VWR-23459 FIXED Viewer compiled against Boost-1.42 crashes when certain command line options are given

used Aleric's SG2 changeset from http://svn.secondlife.com/trac/linden/changeset/3600
	patching file doc/contributions.txt
	Hunk #1 succeeded at 73 with fuzz 2.
	patching file indra/newview/llcommandlineparser.cpp
	Hunk #1 succeeded at 268 with fuzz 1 (offset -8 lines).

Edited doc/contributions.txt to create an entry for Aleric and moved the
issue ID there (patch wasn't able to place it at the right position,
lacking any context).
parent 04611efa
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,8 @@ Aimee Trescothick ...@@ -13,6 +13,8 @@ Aimee Trescothick
VWR-4803 VWR-4803
Alejandro Rosenthal Alejandro Rosenthal
VWR-1184 VWR-1184
Aleric Inglewood
SNOW-626
Alissa Sabre Alissa Sabre
VWR-81 VWR-81
VWR-83 VWR-83
......
...@@ -267,7 +267,11 @@ bool parseAndStoreResults(po::command_line_parser& clp) ...@@ -267,7 +267,11 @@ bool parseAndStoreResults(po::command_line_parser& clp)
{ {
clp.options(gOptionsDesc); clp.options(gOptionsDesc);
clp.positional(gPositionalOptions); clp.positional(gPositionalOptions);
clp.style(po::command_line_style::default_style // SNOW-626: Boost 1.42 erroneously added allow_guessing to the default style
// (see http://groups.google.com/group/boost-list/browse_thread/thread/545d7bf98ff9bb16?fwc=2&pli=1)
// Remove allow_guessing from the default style, because that is not allowed
// when we have options that are a prefix of other options (aka, --help and --helperuri).
clp.style((po::command_line_style::default_style & ~po::command_line_style::allow_guessing)
| po::command_line_style::allow_long_disguise); | po::command_line_style::allow_long_disguise);
po::basic_parsed_options<char> opts = clp.run(); po::basic_parsed_options<char> opts = clp.run();
po::store(opts, gVariableMap); po::store(opts, gVariableMap);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment