Boost logo

Boost :

From: SourceForge.net (noreply_at_[hidden])
Date: 2005-11-24 02:37:16


Bugs item #1365338, was opened at 2005-11-23 23:37
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1365338&group_id=7586

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: format_paragraph in options_description.cpp

Initial Comment:
function format_paragraph
in options_description.cpp triggered assertion
_SCL_SECURE_VALIDATE_RANGE failure in microsoft vc8.

at line #379, it looks for a space backword to
avoid chopping a word in the middle. the expression
line_begin - 1 causes assertion failure
if line_begin is at the beginning of the description
string.

here is suggested fix

@@ -378,3 +378,3 @@
                            
find(reverse_iterator<string::const_iterator>(line_end
- 1),
-
reverse_iterator<string::const_iterator>(line_begin - 1),
+
reverse_iterator<string::const_iterator>(line_begin),
                                  ' ')
@@ -382,3 +382,3 @@

- if (last_space != line_begin - 1)
+ if (last_space != line_begin)
                         {

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1365338&group_id=7586

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Boost-bugs mailing list
Boost-bugs_at_[hidden]
https://lists.sourceforge.net/lists/listinfo/boost-bugs


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