Bug 102613 UMR: nsReadingIterator<WORD>::*(void)const UMR: Uninitialized memory read in nsScanner::ReadUntil(nsAString&,nsReadEndCondition const&,int)

r=heikki sr=darin


git-svn-id: svn://10.0.0.236/trunk@156292 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
timeless%mozdev.org
2004-05-12 08:07:06 +00:00
parent ff339790a7
commit 44fe913204

View File

@@ -1117,6 +1117,8 @@ nsresult nsScanner::ReadUntil(nsAString& aString,
}
while (current != mEndPosition) {
theChar = *current;
// Filter out completely wrong characters
// Check if all bits are in the required area
if(!(theChar & aEndCondition.mFilter)) {
@@ -1132,7 +1134,6 @@ nsresult nsScanner::ReadUntil(nsAString& aString,
}
++current;
theChar = *current;
}
// If we are here, we didn't find any terminator in the string and