fixes bug 286397 "assertion: buffer truncation inadequate" patch by alfredkayser@nl.ibm.com, r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@200782 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
fafea0063a
commit
6022b5924d
@ -824,7 +824,7 @@ nsDiskCacheStreamIO::Seek(PRInt32 whence, PRInt32 offset)
|
||||
}
|
||||
|
||||
// stream buffer sanity checks
|
||||
NS_ASSERTION(mBufEnd <= (16 * 1024), "bad stream");
|
||||
NS_ASSERTION(mBufEnd <= kMaxBufferSize, "bad stream");
|
||||
NS_ASSERTION(mBufPos <= mBufEnd, "bad stream");
|
||||
NS_ASSERTION(mStreamPos == mBufPos, "bad stream");
|
||||
NS_ASSERTION(mStreamEnd == mBufEnd, "bad stream");
|
||||
@ -885,7 +885,7 @@ nsDiskCacheStreamIO::SetEOF()
|
||||
NS_ASSERTION(mBinding->mRecord.DataFileSize() == oldSizeK, "bad disk cache entry size");
|
||||
} else {
|
||||
// data stored in buffer.
|
||||
NS_ASSERTION(mStreamEnd < (16 * 1024), "buffer truncation inadequate");
|
||||
NS_ASSERTION(mStreamEnd <= kMaxBufferSize, "buffer truncation inadequate");
|
||||
NS_ASSERTION(mBufPos == mStreamPos, "bad stream");
|
||||
NS_ASSERTION(mBuffer ? mBufEnd == mStreamEnd : PR_TRUE, "bad stream");
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user