mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Fix converter stream part of bug 638236. r=bzbarsky a2.0=blocking
CLOSED TREE
This commit is contained in:
parent
3a951d37f2
commit
5958fb2e6b
@ -254,7 +254,8 @@ nsConverterInputStream::Fill(nsresult * aErrorCode)
|
||||
NS_ASSERTION(srcConsumed <= mByteData->GetLength(),
|
||||
"Whoa. The converter should have returned NS_OK_UDEC_MOREINPUT before this point!");
|
||||
} while (mReplacementChar &&
|
||||
NS_FAILED(*aErrorCode));
|
||||
NS_FAILED(*aErrorCode) &&
|
||||
mUnicharData->GetBufferSize() > mUnicharDataLength);
|
||||
|
||||
mLeftOverBytes = mByteData->GetLength() - srcConsumed;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user