From 04b1580f73bd465abbc9b4d8c16e9795742b8abc Mon Sep 17 00:00:00 2001 From: "mrbkap%gmail.com" Date: Tue, 4 Jan 2005 02:31:53 +0000 Subject: [PATCH] bug 275651: Fix a potential crash because of a bad use of nsScanner::SetPosition. r=jst sr=dmose --- parser/htmlparser/src/nsHTMLTokens.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser/htmlparser/src/nsHTMLTokens.cpp b/parser/htmlparser/src/nsHTMLTokens.cpp index 9a1507664f1..359f1784b86 100644 --- a/parser/htmlparser/src/nsHTMLTokens.cpp +++ b/parser/htmlparser/src/nsHTMLTokens.cpp @@ -846,7 +846,7 @@ nsresult CTextToken::ConsumeParsedCharacterData(PRUnichar aChar, // We ran out of room looking for a . Go back to the first // place that looked like a tag and use that as our stopping point. theContent.writable().Truncate(truncPos); - aScanner.SetPosition(altEndPos); + aScanner.SetPosition(altEndPos, PR_FALSE, PR_TRUE); } // else we take everything we consumed. mTextValue.Rebind(theContent.str());