To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=61362
------- Additional comments from [EMAIL PROTECTED] Thu Mar 9 06:29:14 -0800
2006 -------
The code that crashes:
SwFormTokens::iterator aIt = aPattern.begin();
bool bPgNumFnd = false;
FormTokenType eTType;
// #i21237#
while( ++aIt != aPattern.end() && !bPgNumFnd )
The crash happens because aIt is already at the end before it is incremented.
Former code (rev.1.77 of the file) didn't use STL and didn't have that bug.
A simple
if ( aIt == aPattern.end() )
return nRet;
before the loop avoids the crash. The question remains wether an empty vector is
allowed here at all, but I assume that it is.
Please review this.
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]