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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user